System::Text::Encoder::GetByteCount metod

Encoder::GetByteCount(ArrayPtr<char_t>, int, int, bool) method

Hämtar antalet byte som behövs för att koda en buffer.

virtual int System::Text::Encoder::GetByteCount(ArrayPtr<char_t> chars, int index, int count, bool flush)
ParameterTypBeskrivning
teckenArrayPtr<char_t>Tecken att koda.
indexintBuffer förskjutning.
countintAntal tecken att koda.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.

ReturnValue

Antal byte som krävs för att koda bufferten.

Se även

Encoder::GetByteCount(const char_t *, int, bool) method

Hämtar antalet byte som behövs för att koda en buffer.

virtual int System::Text::Encoder::GetByteCount(const char_t *chars, int count, bool flush)
ParameterTypBeskrivning
teckenconst char_t *Tecken att koda.
countintAntal tecken att koda.
spolaboolOm true, rensar det interna kodartillståndet efter beräkning.

ReturnValue

Antal byte som krävs för att koda bufferten.

Se även