hex.read_hex (arity 3)ΒΆ
Effectively: dst[:n] = *ptr[:n]
dst is a hex[:n]. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def read_hex n, dst, ptr { ... }
Defined in hex/pointers/read_pointers.fj β lines 44β47 (view on GitHub).
ComplexityΒΆ
Time:
n(w(0.75@+ 5) + 16@+27)Space:
n(w(1.13@+32) + 12@+103)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def read_hex n, dst, ptr {
rep(n, i) .read_hex_and_inc dst + i*dw, ptr
.ptr_sub ptr, n
}
Depends onΒΆ
β Previous: hex.read_hex_and_inc
Next: hex.read_byte_and_inc β