code: @Override
      public byte[] toByteArray() {
          byte newBuf[] = new byte[count];
          System.arraycopy(buf, 0, newBuf, 0, count);
  
          return newBuf;
      }
docs: Non-synchronized version of toByteArray