code: public void write(OutputStream out, int offset,
                      int length) throws IOException {
      data.getBytes(offset, out, length);
    }
docs: Write out a range of this dynamic array to an output stream.
  @param out the stream to write to
  @param offset the first offset to write
  @param length the number of bytes to write
  @throws IOException