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, thet 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 ( iPosition, 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.
- 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 iPosition, int32 iCount )
The function converts data from position passed in iPosition copying iCount bytes to string data. Default encoding is assumed.
- iPosition
- Position in collection
The position of an element in a collection is beginning with 0 for the first element.
- iCount
- Number of items
The value contains the number of items to be processed or stored in a collection.
to list
- iPosition
- Position in collection