System::Text::ICUEncoder::GetBytes-metod

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

Hämta de byte som resultat av att koda en buffert.

virtual int System::Text::ICUEncoder::GetBytes(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, bool flush)
ParameterTypeBeskrivning
charsArrayPtr<char_t>Tecken att koda.
charIndexintKällarray‑offset.
charCountintKällsubarray‑längd.
bytesArrayPtr<uint8_t>Destinationsbyte‑buffert.
byteIndexintDestinationsbuffer‑offset.
flushboolOm true, rensar det interna kodarens tillstånd efter beräkning.

ReturnValue

Antal byte skrivna.

Se även

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

Hämta de byte som resultat av att koda en buffert.

virtual int System::Text::ICUEncoder::GetBytes(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush)
ParameterTypeBeskrivning
charsconst char_t *Tecken att koda.
charCountintKällarray‑längd.
bytesuint8_t *Destinationsbyte‑buffert.
byteCountintDestinationsbuffer‑storlek.
flushboolOm true, rensar det interna kodarens tillstånd efter beräkning.

ReturnValue

Antal byte skrivna.

Se även