Class TStreamHelper

Unit

Declaration

type TStreamHelper = class helper(TObject) for TStream

Description

Helper class for streams that allows to correctly read and write either little or big endian values.

Hierarchy

Overview

Methods

Public procedure ReadLE(out Value: Word); overload;
Public procedure ReadLE(out Value: LongWord); overload;
Public procedure ReadLE(out Value: QWord); overload;
Public procedure ReadLE(out Value: SmallInt); overload;
Public procedure ReadLE(out Value: LongInt); overload;
Public procedure ReadLE(out Value: Int64); overload;
Public procedure ReadLE(out Value: Single); overload;
Public procedure ReadLE(out Value: Double); overload;
Public procedure ReadLE(out Value: TVector2); overload;
Public procedure ReadLE(out Value: TVector3); overload;
Public procedure ReadLE(out Value: TVector4); overload;
Public procedure ReadBE(out Value: Word); overload;
Public procedure ReadBE(out Value: LongWord); overload;
Public procedure ReadBE(out Value: QWord); overload;
Public procedure ReadBE(out Value: SmallInt); overload;
Public procedure ReadBE(out Value: LongInt); overload;
Public procedure ReadBE(out Value: Int64); overload;
Public procedure ReadBE(out Value: Single); overload;
Public procedure ReadBE(out Value: Double); overload;
Public procedure WriteLE(const Value: Word); overload;
Public procedure WriteLE(const Value: LongWord); overload;
Public procedure WriteLE(const Value: QWord); overload;
Public procedure WriteLE(const Value: SmallInt); overload;
Public procedure WriteLE(const Value: LongInt); overload;
Public procedure WriteLE(const Value: Int64); overload;
Public procedure WriteLE(const Value: Single); overload;
Public procedure WriteLE(const Value: Double); overload;
Public procedure WriteBE(const Value: Word); overload;
Public procedure WriteBE(const Value: LongWord); overload;
Public procedure WriteBE(const Value: QWord); overload;
Public procedure WriteBE(const Value: SmallInt); overload;
Public procedure WriteBE(const Value: LongInt); overload;
Public procedure WriteBE(const Value: Int64); overload;
Public procedure WriteBE(const Value: Single); overload;
Public procedure WriteBE(const Value: Double); overload;

Description

Methods

Public procedure ReadLE(out Value: Word); overload;

Reads a little endian value from the stream and converts it to native Byte order.

Public procedure ReadLE(out Value: LongWord); overload;
 
Public procedure ReadLE(out Value: QWord); overload;
 
Public procedure ReadLE(out Value: SmallInt); overload;
 
Public procedure ReadLE(out Value: LongInt); overload;
 
Public procedure ReadLE(out Value: Int64); overload;
 
Public procedure ReadLE(out Value: Single); overload;
 
Public procedure ReadLE(out Value: Double); overload;
 
Public procedure ReadLE(out Value: TVector2); overload;
 
Public procedure ReadLE(out Value: TVector3); overload;
 
Public procedure ReadLE(out Value: TVector4); overload;
 
Public procedure ReadBE(out Value: Word); overload;

Reads a big endian value from the stream and converts it to native Byte order.

Public procedure ReadBE(out Value: LongWord); overload;
 
Public procedure ReadBE(out Value: QWord); overload;
 
Public procedure ReadBE(out Value: SmallInt); overload;
 
Public procedure ReadBE(out Value: LongInt); overload;
 
Public procedure ReadBE(out Value: Int64); overload;
 
Public procedure ReadBE(out Value: Single); overload;
 
Public procedure ReadBE(out Value: Double); overload;
 
Public procedure WriteLE(const Value: Word); overload;

Writes a value in native Byte order as little endian value to the stream.

Public procedure WriteLE(const Value: LongWord); overload;
 
Public procedure WriteLE(const Value: QWord); overload;
 
Public procedure WriteLE(const Value: SmallInt); overload;
 
Public procedure WriteLE(const Value: LongInt); overload;
 
Public procedure WriteLE(const Value: Int64); overload;
 
Public procedure WriteLE(const Value: Single); overload;
 
Public procedure WriteLE(const Value: Double); overload;
 
Public procedure WriteBE(const Value: Word); overload;

Writes a value in native Byte order as big endian value to the stream.

Public procedure WriteBE(const Value: LongWord); overload;
 
Public procedure WriteBE(const Value: QWord); overload;
 
Public procedure WriteBE(const Value: SmallInt); overload;
 
Public procedure WriteBE(const Value: LongInt); overload;
 
Public procedure WriteBE(const Value: Int64); overload;
 
Public procedure WriteBE(const Value: Single); overload;
 
Public procedure WriteBE(const Value: Double); overload;
 

Generated by PasDoc 0.16.0.