public byte [ ] getByteArray ( int size , boolean fillWithZeros ) { byte [ ] array = getArray ( byteArrayCache , size ) ; if ( array == null ) array = new byte [ size ] ; else if ( fillWithZeros ) Arrays . fill ( array , ( byte ) 0x00 ) ; return array ; }
Allocates a new byte array hopefully reusing an existing array from the cache .