company logo

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.

Return value:  String value ( odaba::String & )

Implementation overview

Implementation details

  1. 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.

  2. to list
  3. 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.

  4. to list