code: public void writeTo(byte[] dest)
      {
          if (dest.length < size)
          {
              throw new IllegalArgumentException("Passed in byte[] is not large enough");
          }
  
          System.arraycopy(buffer, 0, dest, 0, size);
      }
docs: Copy the internal byte[] to the passed in byte[].  No new space is allocated.
  @param dest byte[] target