read_dc_number_u128

Function read_dc_number_u128 

Source
pub fn read_dc_number_u128(gids: &[u128]) -> Result<(u128, usize)>
Expand description

Reads a single unsigned 128-bit integer from a slice of Document Character Global Graph IDs (&[u128]), returning the parsed u128 integer and the number of tokens consumed from the slice.

Expects the numeral sequence: [DC_BEGIN_NUMBER, DC_INTEGER, ...Base64 encapsulation digits..., DC_END_NUMBER]

ยงErrors

Returns an error if the token stream does not start with a valid Dc integer numeral frame or if the value overflows u128.