LByteBuffer.fromData constructor

LByteBuffer.fromData(
  1. List<int> data, {
  2. bool readOnly = false,
  3. bool doSigned = false,
})

Implementation

LByteBuffer.fromData(List<int> data,
    {this.readOnly = false, this.doSigned = false}) {
  if (doSigned) {
    _data = Int8List.fromList(data);
  } else {
    _data = Uint8List.fromList(data);
  }
  _limit = _data.length;
}