hex.input_dec_uint_untilΒΆ

dst[:n] = the unsigned decimal number read from input (mod 16^n).

Reads ASCII '0'..'9' and STOPS at the first non-digit byte, which is stored in stop_byte[:2]. The primitive behind hex.input_dec_uint.

SignatureΒΆ

def input_dec_uint_until n, dst, stop_byte @ loop, digit_lo, add_digit, digit, done { ... }

Defined in hex/input.fj β€” lines 101–118 (view on GitHub).

ComplexityΒΆ

  • Time: ~ nd(10@+39)    (d = number of digits)

  • Space: ~ n(9@+132)

See the complexity glossary for what @, w, dw, dbit, n mean.

Requires initΒΆ

The following must be initialised before this macro is invoked:

  • hex.init

SourceΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


← Previous: hex.input_as_hex/3 Next: hex.input_dec_int_until β†’