BufferContext.fromBytes constructor

BufferContext.fromBytes(
  1. List<int> byteList
)

Implementation

factory BufferContext.fromBytes(List<int> byteList) {
  Uint8List uint8List = _asUint8List(byteList);
  ByteData buf = new ByteData.view(uint8List.buffer, uint8List.offsetInBytes);
  return new BufferContext._(buf);
}