code: public void writeToMemory(Object target, long targetOffset) {
      Platform.copyMemory(base, offset, target, targetOffset, numBytes);
    }
docs: Writes the content of this string into a memory address, identified by an object and an offset.
  The target memory address must already been allocated, and have enough space to hold all the
  bytes in this string.