fromUint8List static method
- Uint8List list
Creates a copy of the data from a Uint8List suitable for internal use in the engine.
Implementation
static Future<ImmutableBuffer> fromUint8List(Uint8List list) {
final ImmutableBuffer instance = ImmutableBuffer._(list.length);
return _futurize((_Callback<void> callback) {
return instance._init(list, callback);
}).then((_) => instance);
}