LByteBuffer.fromData constructor

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

Implementation

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