System::Text::Encoding::Convert method

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)
ParameterTypeDescription
src_encodingconst EncodingPtr&Source encoding.
dst_encodingconst EncodingPtr&Destination encoding.
bytesconst ArrayPtr<uint8_t>&Bytes to convert.

ReturnValue

Converted bytes.

See Also

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)
ParameterTypeDescription
src_encodingconst EncodingPtr&Source encoding.
dst_encodingconst EncodingPtr&Destination encoding.
bytesconst ArrayPtr<uint8_t>&Bytes to convert.
indexintSlice beginning.
countintSlice size.

ReturnValue

Converted bytes.

See Also