Replies: 1 comment 2 replies
-
How about the following? (def buf
(-> @""
(buffer/push-uint32 :le 11)
(buffer/push-uint32 :le 22)
(buffer/push-uint32 :be 33)))
# =>
@"\v\0\0\0\0\0\0!"
(peg/match ~(uint 4) buf)
# =>
@[11]
(peg/match ~(uint 4) buf 4)
# =>
@[22]
(peg/match ~(uint-be 4) buf 8)
# =>
@[33] |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a function for reading uint32 from the buffer?
Beta Was this translation helpful? Give feedback.
All reactions