code: public long serialize(DataOutputView target) throws IOException {
  		updateBinaryRepresenation();
  		
  		long bytesForLen = 1;
  		int len = this.binaryLen;
  		while (len >= MAX_BIT) {
  			target.write(len | MAX_BIT);
  			len >>= 7;
  			bytesForLen++;
  		}
  		target.write(len);
  		target.write(this.binaryData, 0, this.binaryLen);
  
  		return bytesForLen + this.binaryLen;
  	}
docs: Writes this record to the given output view. This method is similar to {@link org.apache.flink.core.io.IOReadableWritable#write(org.apache.flink.core.memory.DataOutputView)}, but
  it returns the number of bytes written.
  
  @param target The view to write the record to.
  @return The number of bytes written.
  
  @throws IOException Thrown, if an error occurred in the view during writing.