hexdump: make it return number of bytes placed in buffer