System::Text::Decoder::Convert metod

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

Konverterar byte till tecken.

virtual void System::Text::Decoder::Convert(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed)
ParameterTypeBeskrivning
bytesArrayPtr<uint8_t>Byte att avkoda.
byteIndexintInmatningsbuffertens offset.
byteCountintStorlek på inmatningsbuffert.
charsArrayPtr<char_t>Destinationsteckenbuffert.
charIndexintOffset för destinationsarray.
charCountintStorlek på destinationsarrayen.
flushboolOm sant, rensar det interna avkodartillståndet efter beräkning.
bytesUsedint&Referens till variabel för att lagra antalet lästa byte.
charsUsedint&Referens till variabel för att lagra antalet skrivna tecken.
completedbool&Referens till variabel som ska sättas till true om inmatningsbufferten är uttömd och till false annars.

Se även

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

Konverterar byte till tecken.

virtual void System::Text::Decoder::Convert(const uint8_t *bytes, int byteCount, char_t *chars, int charCount, bool flush, int &bytesUsed, int &charsUsed, bool &completed)
ParameterTypeBeskrivning
bytesconst uint8_t *Byte att avkoda.
byteCountintStorlek på inmatningsbuffert.
charschar_t *Destinationsteckenbuffert.
charCountintStorlek på destinationsarrayen.
flushboolOm sant, rensar det interna avkodartillståndet efter beräkning.
bytesUsedint&Referens till variabel för att lagra antalet lästa byte.
charsUsedint&Referens till variabel för att lagra antalet skrivna tecken.
completedbool&Referens till variabel som ska sättas till true om inmatningsbufferten är uttömd och till false annars.

Se även