Code example for ByteBuffer

Methods: getShort

0
        return (short) (0xFF & in.get());
    } 
 
    public int readUint16() 
    { 
        return 0xFFFF & in.getShort();
    } 
 
    public long readUint32() 
    { 
        return 0xFFFFFFFFL & in.getInt();
    } 
 
    public long readUint64() 
    { 
        return in.getLong();
    } 
 
	public byte[] readBin128() 
	{ 
		byte[] result = new byte[16];