wrap static method
Creates a new ByteBuffer that wraps the given array
Implementation
static ByteBuffer wrap(Uint8List array) {
final buffer = ByteBuffer._internal(array.length);
buffer._buf.setAll(0, array);
return buffer;
}
Creates a new ByteBuffer that wraps the given array
static ByteBuffer wrap(Uint8List array) {
final buffer = ByteBuffer._internal(array.length);
buffer._buf.setAll(0, array);
return buffer;
}