wrap static method

ByteBuffer wrap(
  1. Uint8List array
)

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;
}