What would you recommend for manipulating blocks of bytes? Getting busy with solving some puzzles involving node:crypto module I found that I lack any tool to work with blocks. For example, it would be great to declare that block is 16 (or any other) number of bytes, and continue to work with buffers on that block level.
If JS lacks of this sort tooling, would TypeScript save the day?
Thanks, but I can’t find anything for blocks there. So, if nobody will recommend a tool, I’ll end up with adapting to existing buffer syntax, writing own helpers, and maybe couple of functions from https://github.com/branscha/lib-bytes. =(
Yeah, so I thought maybe there is a natural way to declare something like a block type on-top of Nodejs Buffer, for example. Didn’t learn TS yet, so can’t say much anything for certain. =)