BufferContext.fromBytes constructor

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

Create from a FlatBuffer represented by a list of bytes (uint8).

Implementation

factory BufferContext.fromBytes(List<int> byteList) =>
    BufferContext(byteList is Uint8List
        ? byteList.buffer.asByteData(byteList.offsetInBytes)
        : ByteData.view(Uint8List.fromList(byteList).buffer));