-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
Description
The utilities.binary-dump system provides functions for formatting binary data in some of the ways supported by the od(1) UNIX program:
(let ((buffer (nibbles:make-octet-vector 1024)))
(with-open-file (stream "/dev/urandom" :element-type '(unsigned-byte 8))
(read-sequence buffer stream))
(utilities.binary-dump:binary-dump buffer :base 16 :offset-base 16))00 6A 6F 16 97 76 9B E7 35 9A 79 01 E1 A2 8E A1 9A 85 jo..v..5.y.......
11 E6 2C 41 4B 79 53 AD 70 69 0C 62 5A 3E 48 A9 C5 DB .,AKyS.pi.bZ>H...
22 BB 8C 3C 23 F0 9C 40 81 6E CF 9D 4C 3E DE B2 2F 6E ..<#..@.n..L>../n
33 AD 1B 56 D6 7F 3B 12 42 3B D4 A5 CF F1 5A EF 5B 49 ..V..;.B;....Z.[I
44 E2 EA 3A D7 66 C0 93 90 2B 08 DC 6F 12 2B A9 F6 34 ..:.f...+..o.+..4
55 F3 40 C0 7D 8B C6 CD BA 5A 9C 6C 0E AD 31 .. .@.}....Z.l..1.
Author: Jan Moringen
License: LLGPLv3
Code: https://github.com/scymtym/utilities.binary-dump.git
Branch: master