int function ( ) { int loc0 = buf [ pos ++ ] & 0xFF ; int loc1 = buf [ pos ++ ] & 0xFF ; validatePos ( pos ) ; return ( loc0 << 8 ) + loc1 ; }
read an integer from packet , and advance the read position past it . integers are encoded as two unsigned bytes with the high-order byte first , and , as far as i can tell , in little-endian order within each byte . concode_field_sep int len concode_elem_sep int pos concode_elem_sep Log log concode_elem_sep StringManager sm concode_elem_sep byte buf[] concode_field_sep int peekInt concode_elem_sep void validatePos concode_elem_sep void appendByteChunk concode_elem_sep void appendString concode_elem_sep byte getByte concode_elem_sep byte[] getBuffer concode_elem_sep int getLongInt concode_elem_sep void appendBytes concode_elem_sep void appendBytes concode_elem_sep void getBytes concode_elem_sep void appendCharChunk concode_elem_sep String hexLine concode_elem_sep int processHeader concode_elem_sep int processHeader concode_elem_sep void appendByte concode_elem_sep void doGetBytes concode_elem_sep void appendInt concode_elem_sep void getBodyBytes concode_elem_sep int getLen concode_elem_sep void reset concode_elem_sep void end concode_elem_sep String hex concode_elem_sep void dump concode_elem_sep int getPacketSize concode_elem_sep int getHeaderLength