Back
split-by-blocksize (clj)
(source)function
(split-by-blocksize input blocksize)
(split-by-blocksize input blocksize additional)
Split a byte array in blocksize blocks.
Given a arbitrary size bytearray and block size in bytes, returns a
vector of bytearray blocks of blocksize size. If last block does not
have enought data for fill all block, it is padded using zerobyte
padding.