unpackBinary method

List<int> unpackBinary()

Implementation

List<int> unpackBinary() {
  List<int> bytes = [];
  final length = unpackUint();
  for (var i = 0; i < length.toInt(); i++) {
    bytes.add(_d.getUint8(_offset + i));
  }
  _offset = _offset + length.toInt();
  return bytes;
}