hex.write_byte_and_incΒΆ
Effectively: *ptr = src[:2]
ptr++
src is a hex[:2]. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def write_byte_and_inc ptr, src { ... }
Defined in hex/pointers/write_pointers.fj β lines 68β71 (view on GitHub).
ComplexityΒΆ
Time:
w(0.75@+5) + 26@+51Space:
w(1.13@+32) + 22@+255
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def write_byte_and_inc ptr, src {
.write_byte ptr, src
.ptr_inc ptr
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.input_ptr_lineinhex/strings.fjhex.fill_bytesinhex/strings.fjhex.copy_bytesinhex/strings.fj
β Previous: hex.write_hex/3
Next: hex.write_byte/3 β