public void serializeTo128(IntBuffer buf) {
    assert (this.mag.getV3() >= 0);
    buf.put(this.mag.getV0());
    buf.put(this.mag.getV1());
    buf.put(this.mag.getV2());
    buf.put(this.mag.getV3()
        | (this.negative ? SqlMathUtil.NEGATIVE_INT_MASK : 0));
  }
Serializes the value of this object to ByteBuffer, putting 128 bits data
(full ranges).

@param buf
         ByteBuffer to use
common/src/java/org/apache/hadoop/hive/common/type/SignedInt128.java