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); }