readAll method

Future<Uint8List> readAll({
  1. int cap = uDocMaxAllocation,
})

Implementation

Future<Uint8List> readAll({int cap = uDocMaxAllocation}) {
  if (length > cap) throw UDocParseException("Document of $length bytes exceeds the in-memory cap of $cap");
  return read(0, length);
}