ToBase64CharArray()

Convert::ToBase64CharArray(const ArrayPtr<uint8_t>&, int, int, const ArrayPtr<char16_t>&, int, bool) method

Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an array of Unicode characters.

static int System::Convert::ToBase64CharArray(const ArrayPtr<uint8_t> &in_array, int offset_in, int length, const ArrayPtr<char16_t> &out_array, int offset_out, bool insert_line_breaks=false)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes containing the range of elements to encode
offset_inintAn index of an element in the input array at which the range to encode begins
lengthintThe length of the range of elements to encode
out_arrayconst ArrayPtr<char16_t>&A constant reference to the output array to which the resulting data is to be put
offset_outintAn index in the output array at which to start putting the resulting data
insert_line_breaksboolSpecifies whether the line break characters are to be inserted in the output array after every 76 base-64 characters

Return Value

The number of characters written to the output array

Convert::ToBase64CharArray(const ArrayPtr<uint8_t>&, int, int, const ArrayPtr<char_t>&, int, Base64FormattingOptions) method

Base-64 encodes a range of elements in the specified byte array and stores the encoded data as an array of Unicode characters.

static int System::Convert::ToBase64CharArray(const ArrayPtr<uint8_t> &in_array, int offset_in, int length, const ArrayPtr<char_t> &out_array, int offset_out, Base64FormattingOptions options)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes containing the range of elements to encode
offset_inintAn index of an element in the input array at which the range to encode begins
lengthintThe length of the range of elements to encode
out_arrayconst ArrayPtr<char_t>&A constant reference to the output array to which the resulting data is to be put
offset_outintAn index in the output array at which to start putting the resulting data
optionsBase64FormattingOptionsSpecifies formatting options of base-64 encoded data

Return Value

The number of characters written to the output array

See Also