Module linkspace::abe

source ·
Expand description

ascii byte expression utilities

ABE is a byte templating language. See guide#ABE to understand its use and indepth explanation. *

Modules

Statics

  • default fmt in many cases and output for [pkt]

Functions

  • encode bytes as an abe that evaluate back to bytes.
  • Evaluate an expression and return the bytes
  • Same as lk_eval but accepts bytes outside the range 0x20..0xfe as-is. useful for templating with newlines and utf bytes.
  • An abe parser. Useful to split a cli argument like ’domain:[#:test]:/thing/[12/u32] correctly. The callback is called with (ctrl, contains_brackets, bytes ) where ctrl is 0 | ‘:’ | ‘/’ Only the first ctrl can be ‘\0’.
  • lk_encode with Err on: