void function ( final short arg0 ) { buffer [ offset ++ ] = ( byte ) 0 ; buffer [ offset ++ ] = ( byte ) 0 ; buffer [ offset ++ ] = ( byte ) ( ( arg0 >> 8 ) & 0xff ) ; buffer [ offset ++ ] = ( byte ) ( arg0 & 0xff ) ; }
puts a short integer into the buffer as 2 bytes , big-endian but w / leading zeros e.g. , as if an int32 value . this is based on looking at ganglia data as received on the wire . for example , cpu_num is reported as ushort . concode_field_sep int offset concode_elem_sep byte[] buffer concode_field_sep void writeInt concode_elem_sep void pad concode_elem_sep void writeLong concode_elem_sep byte[] getBuffer concode_elem_sep void reset concode_elem_sep int getLength concode_elem_sep void writeFloat concode_elem_sep void writeString concode_elem_sep void writeDouble