extractSignatureBlock method

int extractSignatureBlock(
  1. int start,
  2. int expectedBlockLength
)

Implementation

int extractSignatureBlock(int start, int expectedBlockLength) {
  int current = start;
  _input.offset = current;
  final blockLength = _input.readUint32();
  assert(
    blockLength + 4 == expectedBlockLength,
    'Signature BlockLength is not correct',
  );
  current = current + 4;
  _input.offset = current;
  current = current + 4;
  _input.offset = current;
  final signatureLength = _input.readUint32();
  current = current + 4;
  _input.offset = current;
  final signatureBytes = _input.readBytes(signatureLength);
  _signatures.add(signatureBytes.toUint8List());
  return current + signatureLength;
}