Class TEoWriter
Unit
Declaration
type TEoWriter = class(TObject)
Description
A class for writing EO data to a sequence of bytes.
Hierarchy
- TObject
- TEoWriter
Overview
Methods
![]() |
constructor Create; |
![]() |
procedure AddByte(Value: Cardinal); |
![]() |
procedure AddBytes(const Bytes: TArray<Byte>); |
![]() |
procedure AddChar(Number: Cardinal); |
![]() |
procedure AddShort(Number: Cardinal); |
![]() |
procedure AddThree(Number: Cardinal); |
![]() |
procedure AddInt(Number: Cardinal); |
![]() |
procedure AddString(Str: string); |
![]() |
procedure AddFixedString(Str: string; ExpectedLength: Cardinal; Padded: Boolean = False); overload; |
![]() |
procedure AddEncodedString(Str: string); |
![]() |
procedure AddFixedEncodedString(Str: string; ExpectedLength: Cardinal; Padded: Boolean = False); overload; |
![]() |
function ToByteArray: TArray<Byte>; |
Properties
![]() |
property StringSanitizationMode: Boolean read FStringSanitizationMode write FStringSanitizationMode; |
![]() |
property Length: Cardinal read FLength; |
Description
Methods
![]() |
constructor Create; |
Creates a new |
![]() |
procedure AddByte(Value: Cardinal); |
Adds a raw byte to the writer data.
Parameters
Exceptions raised
|
![]() |
procedure AddBytes(const Bytes: TArray<Byte>); |
Adds an array of raw bytes to the writer data. Parameters
|
![]() |
procedure AddChar(Number: Cardinal); |
Adds an encoded 1-byte integer to the writer data.
Parameters
Exceptions raised
|
![]() |
procedure AddShort(Number: Cardinal); |
Adds an encoded 2-byte integer to the writer data.
Parameters
Exceptions raised
|
![]() |
procedure AddThree(Number: Cardinal); |
Adds an encoded 3-byte integer to the writer data.
Parameters
Exceptions raised
|
![]() |
procedure AddInt(Number: Cardinal); |
Adds an encoded 4-byte integer to the writer data.
Parameters
Exceptions raised
|
![]() |
procedure AddString(Str: string); |
Adds a string to the writer data. Parameters
|
![]() |
procedure AddEncodedString(Str: string); |
Adds an encoded string to the writer data. Parameters
|
![]() |
function ToByteArray: TArray<Byte>; |
Gets the writer data as a byte array. ReturnsA copy of the writer data as a byte array |
Properties
![]() |
property Length: Cardinal read FLength; |
The length of the writer data. |
Generated by PasDoc 0.16.0-snapshot.