bit.str

create a bit-vector, initialized with the value of ‘str’, and with the number of bytes needed to store ‘str’, plus 1.
used to initialize a string, like:   bit.str "Hello, World!\n"

Signature

def str str { ... }

Defined in bit/casting.fj — lines 7–9 (view on GitHub).

Complexity

  • Time: 0 (data declaration)

  • Space: (#str+15)&(~7)  // which is (strlen(str)+1)*8

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

Source

Depends on


Next: bit.bin2ascii