Javadoc
Serialize the given set's elments into byte[] chunks, calling proc for each
one. proc args: the byte[] chunk and an int indicating whether it
is the last chunk (positive means last chunk, zero othewise).
The return value of proc indicates whether to continue to the next
chunk (true) or abort (false).