System::Text::EncodingEncoder::Convert metod

EncodingEncoder::Convert(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, int, bool, int&, int&, bool&) method

Konverterar tecken till byte.

virtual void System::Text::EncodingEncoder::Convert(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
ParameterTypBeskrivning
teckenArrayPtr<char_t>Tecken att koda.
charIndexintInmatningsbuffertens offset.
charCountintStorlek på inmatningsbuffert.
byteArrayPtr<uint8_t>Målbuffert för byte.
byteIndexintFörskjutning för målarray.
byteCountintStorlek på målarray.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.
charsUsedint&Referens till variabel för att lagra antalet tecken som lästs.
bytesUsedint&Referens till variabel för att lagra antalet bytes som skrivits.
completedbool&Referens till variabel som ska sättas till true om inmatningsbufferten är uttömd och till false annars.

Se även

EncodingEncoder::Convert(const char_t *, int, uint8_t *, int, bool, int&, int&, bool&) method

Konverterar tecken till byte.

virtual void System::Text::EncodingEncoder::Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
ParameterTypBeskrivning
teckenconst char_t *Tecken att koda.
charCountintStorlek på inmatningsbuffert.
byteuint8_t *Målbuffert för byte.
byteCountintStorlek på målarray.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.
charsUsedint&Referens till variabel för att lagra antalet tecken som lästs.
bytesUsedint&Referens till variabel för att lagra antalet bytes som skrivits.
completedbool&Referens till variabel som ska sättas till true om inmatningsbufferten är uttömd och till false annars.

Se även