code: public int serialize (final ByteBuffer dst, final int off) {
  
          if (dst == null) { throw new NullPointerException(); }
  
          dst.position(off);
  
          if (dst.remaining() % Constants.BYTES_PER_INT != 0) { throw new IllegalArgumentException("The buffer length must be a multiple of " + Constants.BYTES_PER_INT + "."); }
  
          dataBuffer.rewind();
  
          if (dst.remaining() < dataBuffer.limit()) { throw new IllegalArgumentException("The data buffer is too small."); }
  
          dst.put(dataBuffer);
  
          return dataBuffer.limit();
      }
docs: {@inheritDoc}