Share via


GetChars Method (Byte[], Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Decodes a sequence of bytes from the specified byte array into a set of characters.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides Function GetChars ( _
    bytes As Byte(), _
    byteIndex As Integer, _
    byteCount As Integer _
) As Char()
public override char[] GetChars(
    byte[] bytes,
    int byteIndex,
    int byteCount
)
public:
virtual array<wchar_t>^ GetChars(
    array<unsigned char>^ bytes, 
    int byteIndex, 
    int byteCount
) override
abstract GetChars : 
        bytes:byte[] * 
        byteIndex:int * 
        byteCount:int -> char[] 
override GetChars : 
        bytes:byte[] * 
        byteIndex:int * 
        byteCount:int -> char[] 
public override function GetChars(
    bytes : byte[], 
    byteIndex : int, 
    byteCount : int
) : char[]

Parameters

  • bytes
    Type: array<System. . :: . .Byte> [] () [] []
    The byte array containing the sequence of bytes to decode.

Return Value

Type: array<System. . :: . .Char> [] () [] []
A character array containing the results of decoding the specified sequence of bytes.

.NET Framework Security

See Also

Reference

UTF8Encoding Class

GetChars Overload

System.Text Namespace