code: public final int serializeDataSegment (final ByteBuffer dst, final int offset) throws InternetSCSIException {
  
          dataSegment.rewind();
          dst.position(offset);
          dst.put(dataSegment);
  
          return dataSegment.limit();
      }
docs: Serializes the data segment (binary or key-value pairs) to a destination array, staring from offset to write.
  
  @param dst The array to write in.
  @param offset The start offset to start from in <code>dst</code>.
  @return The written length.
  @throws InternetSCSIException If any violation of the iSCSI-Standard emerge.