Decided to use simple byte arrays rather than byte buffers.