RtcpReportBlock { protected int decode(byte[] rawData, int offSet) { this.ssrc |= rawData[offSet++] & 0xFF; this.ssrc <<= 8; this.ssrc |= rawData[offSet++] & 0xFF; this.ssrc <<= 8; this.ssrc |= rawData[offSet++] & 0xFF; this.ssrc <<= 8; this.ssrc |= rawData[offSet++] & 0xFF; this.fraction = rawData[offSet++] & 0xFF; this.lost |= rawData[offSet++] & 0xFF; this.lost <<= 8; this.lost |= rawData[offSet++] & 0xFF; this.lost <<= 8; this.lost |= rawData[offSet++] & 0xFF; this.SeqNumCycle |= rawData[offSet++] & 0xFF; this.SeqNumCycle <<= 8; this.SeqNumCycle |= rawData[offSet++] & 0xFF; this.lastSeq |= rawData[offSet++] & 0xFF; this.lastSeq <<= 8; this.lastSeq |= rawData[offSet++] & 0xFF; this.jitter |= rawData[offSet++] & 0xFF; this.jitter <<= 8; this.jitter |= rawData[offSet++] & 0xFF; this.jitter <<= 8; this.jitter |= rawData[offSet++] & 0xFF; this.jitter <<= 8; this.jitter |= rawData[offSet++] & 0xFF; this.lsr |= rawData[offSet++] & 0xFF; this.lsr <<= 8; this.lsr |= rawData[offSet++] & 0xFF; this.lsr <<= 8; this.lsr |= rawData[offSet++] & 0xFF; this.lsr <<= 8; this.lsr |= rawData[offSet++] & 0xFF; this.dlsr |= rawData[offSet++] & 0xFF; this.dlsr <<= 8; this.dlsr |= rawData[offSet++] & 0xFF; this.dlsr <<= 8; this.dlsr |= rawData[offSet++] & 0xFF; this.dlsr <<= 8; this.dlsr |= rawData[offSet++] & 0xFF; return offSet; } protected  RtcpReportBlock();  RtcpReportBlock(long ssrc, int fraction, int lost, int SeqNumCycle, long lastSeq, int jitter, long lsr, long dlsr); long getSsrc(); int getFraction(); int getLost(); int getSeqNumCycle(); long getLastSeq(); int getJitter(); long getLsr(); long getDlsr(); @Override String toString();  }
@Test public void testDecode() { RtcpReportBlock rr = new RtcpReportBlock(); int length = rr.decode(p, 0); assertEquals(p.length, length); assertEquals(266283887, rr.getSsrc()); assertEquals(0, rr.getFraction()); assertEquals(0, rr.getLost()); assertEquals(0, rr.getSeqNumCycle()); assertEquals(17250, rr.getLastSeq()); assertEquals(57, rr.getJitter()); assertEquals(4221306863l, rr.getLsr()); assertEquals(263851, rr.getDlsr()); }