Open Rails

ByteEncoding.GetByteCount(Char, Int32, Int32) Method

[This is preliminary documentation and subject to change.]

Calculates the number of bytes produced by encoding a set of characters from the specified character array.

public override int GetByteCount(
   char[] chars,
   int index,
   int count
);

Parameters

chars
The character array containing the set of characters to encode.
index
The index of the first character to encode.
count
The number of characters to encode.

Return Value

The number of bytes produced by encoding the specified characters.

See Also

ByteEncoding Class | ORTS.IO Namespace | ByteEncoding.GetByteCount Overload List