System::Text::ICUEncoder::Convert-metod

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

Konverterar tecken till byte.

virtual void System::Text::ICUEncoder::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)
ParameterTypeBeskrivning
charsArrayPtr<char_t>Tecken att koda.
charIndexintInmatningsbuffertens offset.
charCountintStorlek på inmatningsbuffert.
bytesArrayPtr<uint8_t>Destinationsbyte‑buffert.
byteIndexintOffset för destinationsarray.
byteCountintStorlek på destinationsarrayen.
flushboolOm true, rensar det interna kodarens tillstånd 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

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

Konverterar tecken till byte.

virtual void System::Text::ICUEncoder::Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
ParameterTypeBeskrivning
charsconst char_t *Tecken att koda.
charCountintStorlek på inmatningsbuffert.
bytesuint8_t *Destinationsbyte‑buffert.
byteCountintStorlek på destinationsarrayen.
flushboolOm true, rensar det interna kodarens tillstånd 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