void writeTo(byte[] b, int off) {
      System.arraycopy(buf, 0, b, off, count);
    }
Writes the contents of the internal buffer to the given array starting at the given offset.
Assumes the array has space to hold count bytes.
fbcore/src/main/java/com/facebook/common/internal/ByteStreams.java