PrevNextUpHome SophiaFramework UNIVERSE 5.3

14.3. Buffer Class

SFXBuffer is the class that enhances the SFXClusterHeap class with functions such as buffer combination, data lookup, substitution, etc.

The SFXBuffer instance can be converted to the SFXAnsiString or SFXWideString instance and vice versa

Example 14.9. Method to use the SFXBuffer class

// define SFXBuffer instance
SFXBuffer buffer;

// allocate memory

// set value to buffer
buffer[0] = 0xAA;
buffer[1] = 0xBB;

// get value from buffer
UInt08 n = buffer[1]; // n = 0xBB