System::Text::Encoding::GetBytes metod

Encoding::GetBytes(ArrayPtr<char_t>) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual ArrayPtr<uint8_t> System::Text::Encoding::GetBytes(ArrayPtr<char_t> chars)
ParameterTypeBeskrivning
charsArrayPtr<char_t>Tecken att koda.

ReturnValue

Buffer that holds representation of characters being encoded.

Se även

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

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual int System::Text::Encoding::GetBytes(ArrayPtr<char_t> chars, int char_index, int char_count, ArrayPtr<uint8_t> bytes, int byte_index)
ParameterTypeBeskrivning
charsArrayPtr<char_t>Tecken att koda.
char_indexintBörjan av teckensegmentet.
char_countintAntal tecken att konvertera.
bytesArrayPtr<uint8_t>Buffer för att placera tecken i.
byte_indexintUtmatningsbuffertens offset.

ReturnValue

Antal skrivna byte.

Se även

Encoding::GetBytes(ArrayPtr<char_t>, int, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual ArrayPtr<uint8_t> System::Text::Encoding::GetBytes(ArrayPtr<char_t> chars, int index, int count)
ParameterTypeBeskrivning
charsArrayPtr<char_t>Tecken att koda.
indexintBörjan av teckensegmentet.
countintAntal tecken att konvertera.

ReturnValue

Buffer that holds representation of characters being encoded.

Se även

Encoding::GetBytes(const char_t *, int, uint8_t *, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual int System::Text::Encoding::GetBytes(const char_t *chars, int char_count, uint8_t *bytes, int byte_count)
ParameterTypeBeskrivning
charsconst char_t *Tecken att koda.
char_countintAntal tecken att konvertera.
bytesuint8_t *Buffer för att placera tecken i.
byte_countintStorlek på utdatabuffert.

ReturnValue

Antal skrivna byte.

Se även

Encoding::GetBytes(const String&) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual ArrayPtr<uint8_t> System::Text::Encoding::GetBytes(const String &s)
ParameterTypeBeskrivning
sconst String&String att koda.

ReturnValue

Buffer that holds representation of characters being encoded.

Se även

Encoding::GetBytes(const String&, int, int, ArrayPtr<uint8_t>, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual int System::Text::Encoding::GetBytes(const String &s, int char_index, int char_count, ArrayPtr<uint8_t> bytes, int byte_index)
ParameterTypeBeskrivning
sconst String&String att koda.
char_indexintBörjan av teckensegmentet.
char_countintAntal tecken att konvertera.
bytesArrayPtr<uint8_t>Buffer för att placera tecken i.
byte_indexintUtmatningsbuffertens offset.

ReturnValue

Antal skrivna byte.

Se även

Encoding::GetBytes(const System::Details::ArrayView<char_t>&, int, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual ArrayPtr<uint8_t> System::Text::Encoding::GetBytes(const System::Details::ArrayView<char_t> &chars, int index, int count)
ParameterTypeBeskrivning
charsconst System::Details::ArrayView<char_t>&Tecken att koda.
indexintBörjan av teckensegmentet.
countintAntal tecken att konvertera.

ReturnValue

Buffer that holds representation of characters being encoded.

Se även

Encoding::GetBytes(const System::Details::StackArray<char_t, N>&, int, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

template<std::size_t> ArrayPtr<uint8_t> System::Text::Encoding::GetBytes(const System::Details::StackArray<char_t, N> &chars, int index, int count)
ParameterTypeBeskrivning
charsconst System::Details::StackArray<char_t, N>&Tecken att koda.
indexintBörjan av teckensegmentet.
countintAntal tecken att konvertera.

ReturnValue

Buffer that holds representation of characters being encoded.

Se även

Encoding::GetBytes(System::Details::ArrayView<char_t>, int, int, System::Details::ArrayView<uint8_t>, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

virtual int System::Text::Encoding::GetBytes(System::Details::ArrayView<char_t> chars, int char_index, int char_count, System::Details::ArrayView<uint8_t> bytes, int byte_index)
ParameterTypeBeskrivning
charsSystem::Details::ArrayView<char_t>Tecken att koda.
char_indexintBörjan av teckensegmentet.
char_countintAntal tecken att konvertera.
bytesSystem::Details::ArrayView<uint8_t>Buffer för att placera tecken i.
byte_indexintUtmatningsbuffertens offset.

ReturnValue

Antal skrivna byte.

Se även

Encoding::GetBytes(System::Details::StackArray<char_t, SC>&, int, int, System::Details::StackArray<uint8_t, SB>&, int) method

Hämta de byte som erhålls genom att koda en teckenbuffert.

template<std::size_t,std::size_t> int System::Text::Encoding::GetBytes(System::Details::StackArray<char_t, SC> &chars, int char_index, int char_count, System::Details::StackArray<uint8_t, SB> &bytes, int byte_index)
ParameterTypeBeskrivning
charsSystem::Details::StackArray<char_t, SC>&Tecken att koda.
char_indexintBörjan av teckensegmentet.
char_countintAntal tecken att konvertera.
bytesSystem::Details::StackArray<uint8_t, SB>&Buffer för att placera tecken i.
byte_indexintUtmatningsbuffertens offset.

ReturnValue

Antal skrivna byte.

Se även