System::Text::ICUEncoder::GetBytes metod

ICUEncoder::GetBytes(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, bool) method

Hämta byte som resultat av att koda en buffer.

virtual int System::Text::ICUEncoder::GetBytes(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, bool flush)
ParameterTypBeskrivning
teckenArrayPtr<char_t>Tecken att koda.
charIndexintOffset för källarray.
charCountintLängd för källsubarray.
byteArrayPtr<uint8_t>Målbuffert för byte.
byteIndexintOffset för destinationsbuffer.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.

ReturnValue

Antal skrivna byte.

Se även

ICUEncoder::GetBytes(const char_t *, int, uint8_t *, int, bool) method

Hämta byte som resultat av att koda en buffer.

virtual int System::Text::ICUEncoder::GetBytes(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush)
ParameterTypBeskrivning
teckenconst char_t *Tecken att koda.
charCountintLängd för källarray.
byteuint8_t *Målbuffert för byte.
byteCountintStorlek för destinationsbuffer.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.

ReturnValue

Antal skrivna byte.

Se även