code: @Override
  	public void write(DataOutputView out) throws IOException {
  		out.writeInt(position);
  
  		for (int i = 0; i < position; i++) {
  			out.writeByte(data[i]);
  		}
  	}
docs: --------------------------------------------------------------------------------------------