RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TUnicodeEncoding.GetCharCount Method

Calcuates a number of characters generated by decoding a sequence of bytes.

Pascal
function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; override; overload;
C++
virtual __fastcall int GetCharCount(PByte Bytes, int ByteCount);

TEncoding.GetCharCount generates a number of characters by decoding Bytes

Bytes can be a byte array, or a byte pointer. 

The ByteCount parameter specifies the number of bytes to decode. 

The Return Value is the number of characters decoded. 

 

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