fromPointer static method
Implementation
static Uint8List fromPointer(Pointer<Uint8> ptr, int length,
{bool copy: true}) {
final view = ptr.asTypedList(length);
final builder = BytesBuilder(copy: copy);
builder.add(view);
return builder.takeBytes();
}