RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEncoding.Convert Method (TEncoding, TEncoding, TBytes)

Convert an array of bytes from one encoding to another.

Pascal
class function Convert(Source: TEncoding; Destination: TEncoding; Bytes: TBytes): TBytes; overload;
class function Convert(Source: TEncoding; Destination: TEncoding; Bytes: TBytes; StartIndex: Integer; Count: Integer): TBytes; overload;
C++
__fastcall TBytes Convert(TEncoding Source, TEncoding Destination, TBytes Bytes);
__fastcall TBytes Convert(TEncoding Source, TEncoding Destination, TBytes Bytes, int StartIndex, int Count);

TEncoding.Convert converts an array of bytes from one encoding to another.  

Source refers to the encoding type of the encoding of the original bytes.  

Destination refers to the encoding type that the bytes are to be converted to.  

StartIndex specifies the index of the array to begin converting.  

Count specifies the number of bytes to convert.  

The Return Value is the converted array of bytes. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!