pub fn parse_sequence(bytes: &[u8], path: &Path) -> Result<i64, CaptureError>Expand description
What:
The value of a sequence file:
canonical decimal digits of a safe integer,
then one
newline.
Why:
parseSequence:
String(Number.parseInt(digits, 10)) === digits admits no sign,
no
leading zero and no whitespace;
anything else is a malformed store.
In TS you’d write (pseudocode):
function parseSequence({ text, path }): number; // throws TypeError