hex.read_byte_and_incΒΆ
Effectively: dst[:2] = *ptr
ptr++
dst is a hex[:2]. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def read_byte_and_inc dst, ptr { ... }
Defined in hex/pointers/read_pointers.fj β lines 54β57 (view on GitHub).
ComplexityΒΆ
Time:
w(0.75@+ 5) + 18@+27Space:
w(1.13@+32) + 14@+127
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def read_byte_and_inc dst, ptr {
.read_byte dst, ptr
.ptr_inc ptr
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.print_ptr_textinhex/strings.fjhex.copy_bytesinhex/strings.fj
β Previous: hex.read_hex/3
Next: hex.read_byte/3 β