mirror of
https://github.com/wader/fq.git
synced 2024-11-24 03:05:22 +03:00
06245d1295
Rename buffer to binary. Still some work left what to call buffer/binary in decode code. Document decode value and binary type Fix proper unit padding for tobytes and add still undocumenated extra padding argument. Add some additional binary tests
8 lines
327 B
Plaintext
8 lines
327 B
Plaintext
def tobits: _tobits(1; false; 0);
|
|
def tobytes: _tobits(8; false; 0);
|
|
def tobitsrange: _tobits(1; true; 0);
|
|
def tobytesrange: _tobits(8; true; 0);
|
|
def tobits($pad): _tobits(1; false; $pad);
|
|
def tobytes($pad): _tobits(8; false; $pad);
|
|
def tobitsrange($pad): _tobits(1; true; $pad);
|
|
def tobytesrange($pad): _tobits(8; true; $pad); |