Code example for ByteArrayBuffer

Methods: byteAt

0
    }    
    //c 
    public static int getShortPacketData(ByteArrayBuffer buf)
    {       
    	//Log.d("LTData", "getShortPacketData"); 
        return (buf.byteAt(1) & 0xe) >> 1;
    } 
    //v 
    public static int getSpecialPacketData(ByteArrayBuffer buf)
    { 
    	//Log.d("LTData", "getSpecialPacketData"); 
        return (buf.byteAt(1) & 0xfe) >> 1;
    } 
    //v 
    public static int getLongPacketLength(ByteArrayBuffer buf)
    { 
    	//Log.d("LTData", "getLongPacketLength"); 
        return (buf.byteAt(1) & 0xfe) >> 1;
    } 
    //l 
    public static int getShortPacketLength(ByteArrayBuffer buf)