bindat-pack

bindat-pack is a compiled Lisp function in `bindat.el'.

(bindat-pack SPEC STRUCT &optional BINDAT-RAW BINDAT-IDX)

Return binary data packed according to SPEC for structured data STRUCT.
Optional third arg BINDAT-RAW is a pre-allocated unibyte string or vector to
pack into.
Optional fourth arg BINDAT-IDX is the starting offset into BINDAT-RAW.