Convert()

Encoding::Convert(const EncodingPtr&, const EncodingPtr&, const ArrayPtr<uint8_t>&) method

Converts bytes between two encodings.

static ArrayPtr<uint8_t> System::Text::Encoding::Convert(const EncodingPtr &src_encoding, const EncodingPtr &dst_encoding, const ArrayPtr<uint8_t> &bytes)

Arguments

ParameterTypeDescription
src_encodingconst EncodingPtr&Source encoding.
dst_encodingconst EncodingPtr&Destination encoding.
bytesconst ArrayPtr<uint8_t>&Bytes to convert.

Return Value

Converted bytes.

Encoding::Convert(const EncodingPtr&, const EncodingPtr&, const ArrayPtr<uint8_t>&, int, int) method

Converts bytes between two encodings.

static ArrayPtr<uint8_t> System::Text::Encoding::Convert(const EncodingPtr &src_encoding, const EncodingPtr &dst_encoding, const ArrayPtr<uint8_t> &bytes, int index, int count)

Arguments

ParameterTypeDescription
src_encodingconst EncodingPtr&Source encoding.
dst_encodingconst EncodingPtr&Destination encoding.
bytesconst ArrayPtr<uint8_t>&Bytes to convert.
indexintSlice beginning.
countintSlice size.

Return Value

Converted bytes.

See Also