stringToByteBuffer function

Pointer<NativeByteBuffer> stringToByteBuffer(
  1. String value
)

Converts a string to a NativeByteBuffer.

Takes a String value and returns a Pointer to a NativeByteBuffer.

Implementation

Pointer<NativeByteBuffer> stringToByteBuffer(String value) {
  return bytesListToByteBuffer(utf8.encode(value));
}