Unit EOLib.Data
Uses
Types
Variables
Description
Utilities to read and write EO data types.
Overview
Classes, Interfaces, Objects and Records
Name | Description |
---|---|
Class TEoReader |
A class for reading EO data from a sequence of bytes. |
Class TEoWriter |
A class for writing EO data to a sequence of bytes. |
Functions and Procedures
function EncodeNumber(Number: Cardinal): TArray<Byte>; |
function DecodeNumber(Bytes: TArray<Byte>): Cardinal; |
procedure EncodeString(var Bytes: TArray<Byte>); |
procedure DecodeString(var Bytes: TArray<Byte>); |
Constants
EoCharMax = 253; |
EoShortMax = EoCharMax * EoCharMax; |
EoThreeMax = EoCharMax * EoCharMax * EoCharMax; |
EoIntMax = Int64(EoCharMax) * EoCharMax * EoCharMax * EoCharMax; |
Description
Functions and Procedures
function EncodeNumber(Number: Cardinal): TArray<Byte>; |
Encodes a number to a sequence of bytes. Parameters
ReturnsThe encoded sequence of bytes |
function DecodeNumber(Bytes: TArray<Byte>): Cardinal; |
Decodes a number from a sequence of bytes. Parameters
ReturnsThe decoded number |
procedure EncodeString(var Bytes: TArray<Byte>); |
Encodes a string by inverting the bytes and then reversing them. This is an in-place operation. Parameters
|
procedure DecodeString(var Bytes: TArray<Byte>); |
Decodes a string by reversing the bytes and then inverting them. This is an in-place operation. Parameters
|
Constants
EoCharMax = 253; |
The maximum value of an EO char (1-byte encoded integer type). |
EoShortMax = EoCharMax * EoCharMax; |
The maximum value of an EO short (2-byte encoded integer type). |
EoThreeMax = EoCharMax * EoCharMax * EoCharMax; |
The maximum value of an EO three (3-byte encoded integer type). |
EoIntMax = Int64(EoCharMax) * EoCharMax * EoCharMax * EoCharMax; |
The maximum value of an EO int (4-byte encoded integer type). |
Generated by PasDoc 0.16.0-snapshot.