question: public byte [ ] toByteArray ( ) { byte [ ] toBuf = new byte [ count ] ; System . arraycopy ( buf , 0 , toBuf , 0 , count ) ; return toBuf ; }
target:  Returns the written bytes in a newly allocated byte[] of length getSize().