GetByteCount()

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

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

int System::Text::UTF7Encoding::GetByteCount(const char_t *chars, int count) override

Arguments

ParameterTypeDescription
charsconst char_t *Characters buffer.
countintBuffer size.

Return Value

Required buffer size.

UTF7Encoding::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)

Arguments

ParameterTypeDescription
charsArrayPtr<char_t>Characters buffer.
indexintSlice begin.
countintSlice size.

Return Value

Required buffer size.

UTF7Encoding::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)

Arguments

ParameterTypeDescription
charsSystem::Details::ArrayView<char_t>Characters buffer.
indexintSlice begin.
countintSlice size.

Return Value

Required buffer size.

UTF7Encoding::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)

Arguments

ParameterTypeDescription
charsconst System::Details::StackArray<char_t, N>&Characters buffer.
indexintSlice begin.
countintSlice size.

Return Value

Required buffer size.

UTF7Encoding::GetByteCount(const String&) method

Get the number of characters needed to encode a string.

virtual int System::Text::Encoding::GetByteCount(const String &s)

Arguments

ParameterTypeDescription
sconst String&String to encode.

Return Value

Required buffer size.

UTF7Encoding::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)

Arguments

ParameterTypeDescription
charsArrayPtr<char_t>Characters buffer.

Return Value

Required buffer size.

UTF7Encoding::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)

Arguments

ParameterTypeDescription
charsconst char_t *Characters buffer.
countintBuffer size.

Return Value

Required buffer size.

See Also