code: public void set(byte[] newData, int offset, int length) {
      setSize(0);
      setSize(length);
      System.arraycopy(newData, offset, bytes, 0, size);
    }
docs: Set the value to a copy of the given byte range
  @param newData the new values to copy in
  @param offset the offset in newData to start at
  @param length the number of bytes to copy