Open Rails

ByteEncoding.GetBytes(Char, Int32, Int32, Byte, Int32) Method

[This is preliminary documentation and subject to change.]

Encodes a set of characters from the specified character array into the specified byte array.

public override int GetBytes(
   char[] chars,
   int charIndex,
   int charCount,
   byte[] bytes,
   int byteIndex
);

Parameters

chars
The character array containing the set of characters to encode.
charIndex
The index of the first character to encode.
charCount
The number of characters to encode.
bytes
The byte array to contain the resulting sequence of bytes.
byteIndex
The index at which to start writing the resulting sequence of bytes.

Return Value

The actual number of bytes written into bytes.

See Also

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