System::Text::Encoding::GetByteCount method

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

Get the number of characters needed to encode a character buffer.

virtual int System::Text::Encoding::GetByteCount(ArrayPtr<char_t> chars, int index, int count)
ParameterTypeDescription
charsArrayPtr<char_t>Characters buffer.
indexintSlice begin.
countintSlice size.

ReturnValue

Required buffer size.

See Also

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

Get the number of characters needed to encode a character buffer.

virtual int System::Text::Encoding::GetByteCount(System::Details::ArrayView<char_t> chars, int index, int count)
ParameterTypeDescription
charsSystem::Details::ArrayView<char_t>Characters buffer.
indexintSlice begin.
countintSlice size.

ReturnValue

Required buffer size.

See Also

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

Get the number of characters needed to encode a character buffer.

template<std::size_t> int System::Text::Encoding::GetByteCount(const System::Details::StackArray<char_t, N> &chars, int index, int count)
ParameterTypeDescription
charsconst System::Details::StackArray<char_t, N>&Characters buffer.
indexintSlice begin.
countintSlice size.

ReturnValue

Required buffer size.

See Also

Encoding::GetByteCount(const String&) method

Get the number of characters needed to encode a string.

virtual int System::Text::Encoding::GetByteCount(const String &s)
ParameterTypeDescription
sconst String&String to encode.

ReturnValue

Required buffer size.

See Also

Encoding::GetByteCount(ArrayPtr<char_t>) method

Get the number of characters needed to encode a character buffer.

virtual int System::Text::Encoding::GetByteCount(ArrayPtr<char_t> chars)
ParameterTypeDescription
charsArrayPtr<char_t>Characters buffer.

ReturnValue

Required buffer size.

See Also

Encoding::GetByteCount(const char_t *, int) method

Get the number of characters needed to encode a character buffer.

virtual int System::Text::Encoding::GetByteCount(const char_t *chars, int count)
ParameterTypeDescription
charsconst char_t *Characters buffer.
countintBuffer size.

ReturnValue

Required buffer size.

See Also