Binary :: toString - Convert binary data to string
The function converts binary data to a string. When binary data contains non-character types, string data may become incorrect, i.e. before calling the function one should ensure, that it really contains string data for the requested encoding type.
Implementation overview
- Convert part of binary data to string
Binary :: toString ( eStringCodingType, iCount ) - Convert part of binary data to string
Binary :: toString ( iCount )
Implementation details
-
Convert part of binary data to string
odaba::String Binary  :: toString ( odaba::StringCodingTypes eStringCodingType, int32 iCount )
The function converts binary data copying iCount bytes to string data. Character encoding is set to encoding type passed in eStringEncoding. When the area is preceded by a valid BOM, string encoding type defined in the BOM is used and string will be converted into the requested coding type passed in eStringEncoding.
- eStringCodingType
- String encoding type
In case of unknown text encoding type undefinedCoding is used.
- iCount
- Number of items
The value contains the number of items to be processed or stored in a collection.
to list
- eStringCodingType
- String encoding type
-
Convert part of binary data to string
odaba::String Binary  :: toString ( int32 iCount )
The function converts data from position passed in iPosition copying iCount bytes to string data. When the buffer is preceded by a BOM, encoding type is evaluated from BOM and the string will be converted to default encoding.
- iCount
- Number of items
The value contains the number of items to be processed or stored in a collection.
to list
- iCount
- Number of items