hex.input_ptr_lineΒΆ

Reads bytes from input into the pointed buffer, until a '\n' or a 0-byte (EOF); writes the byte count into len[:w/4].

SignatureΒΆ

def input_ptr_line ptr, len @ loop, store, finish, wptr, bytebuf, nl, end { ... }

Defined in hex/strings.fj β€” lines 9–27 (view on GitHub).

ComplexityΒΆ

  • Time: len(w(0.75@+5) + 39@+79)

  • Space: w(2.25@+44) + 34@+381

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 and stl.ptr_init (or stl.startup_and_init_all).

SourceΒΆ

Depends onΒΆ


Next: hex.print_ptr_text β†’