encodeInto
Encode Into
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided byte array.
Parameters
The string to encode.
The byte array to copy the encoded string into.
Encode Into (Host Arrays)
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided byte array.
This method uses host types, and is meant for host dispatch only.
Parameters
The string to encode.
The byte array to copy the encoded string into.
Encode Into (Host Buffers)
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided byte buffer.
This method uses host types, and is meant for host dispatch only.
Parameters
The string to encode.
The byte buffer to copy the encoded string into.
Encode Into (Host Channels)
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided writable channel.
This method uses host types, and is meant for host dispatch only.
Parameters
The string to encode.
Output channel to write into.
Encode Into (Host Streams)
Encodes a string into a ByteArray containing the UTF-8 representation of the string, and then copies it into the provided output stream.
This method uses host types, and is meant for host dispatch only.
Note: The stream is not closed after writing.
Parameters
The string to encode.
Output stream to write into.