test_class.declarator: _HEADER_LENGTH = 12
test_class.modifier: public static final
test_class.original_string: public static final int _HEADER_LENGTH = 12;
test_class.type: int
test_class.var_name: _HEADER_LENGTH
test_class.declarator: _TEST_HEADER_LENGTH = 25
test_class.modifier: public static final
test_class.original_string: public static final int _TEST_HEADER_LENGTH = 25;
test_class.type: int
test_class.var_name: _TEST_HEADER_LENGTH
test_class.declarator: _OVERLAP = _TEST_HEADER_LENGTH - _HEADER_LENGTH
test_class.modifier: public static final
test_class.original_string: public static final int _OVERLAP = _TEST_HEADER_LENGTH - _HEADER_LENGTH;
test_class.type: int
test_class.var_name: _OVERLAP
test_class.declarator: packet = new byte[]{(byte)0x80, (byte)0x03, (byte)0x08, (byte)0x18, 
      (byte)0xa5, (byte)0x1f, (byte)0xce, (byte)0xb5, (byte)0x57, (byte)0x3d, (byte)0x59, (byte)0xba}
test_class.modifier: private
test_class.original_string: private byte[] packet = new byte[]{(byte)0x80, (byte)0x03, (byte)0x08, (byte)0x18, 
      (byte)0xa5, (byte)0x1f, (byte)0xce, (byte)0xb5, (byte)0x57, (byte)0x3d, (byte)0x59, (byte)0xba};
test_class.type: byte[]
test_class.var_name: packet
test_class.file: servers/media/core/server-impl/src/test/java/org/mobicents/media/server/impl/rtp/RtpHeaderTest.java
test_class.identifier: RtpHeaderTest
test_case.body: @Test
      public void testAppend() {
          boolean marker = false;
          byte payloadType = 9;
          int seqNumber = 13717;
          int timestamp = 1234897;
          long ssrc = 1438967189;
  
          byte[] bin = new byte[12];
          bin[0] = (byte) (0x80);
  
          bin[1] = marker ? (byte) (payloadType | 0x80) : (byte) (payloadType & 0x7f);
          bin[2] = ((byte) ((seqNumber & 0xFF00) >> 8));
          bin[3] = ((byte) (seqNumber & 0x00FF));
  
          bin[4] = ((byte) ((timestamp & 0xFF000000) >> 24));
          bin[5] = ((byte) ((timestamp & 0x00FF0000) >> 16));
          bin[6] = ((byte) ((timestamp & 0x0000FF00) >> 8));
          bin[7] = ((byte) ((timestamp & 0x000000FF)));
  
          bin[8] = ((byte) ((ssrc & 0xFF000000) >> 24));
          bin[9] = ((byte) ((ssrc & 0x00FF0000) >> 16));
          bin[10] = ((byte) ((ssrc & 0x0000FF00) >> 8));
          bin[11] = ((byte) ((ssrc & 0x000000FF)));
  
          RtpHeader h2 = new RtpHeader();
          int i = 0;
          while (!h2.isFilled()) {
              h2.append(bin, i++, 1);
          }
          
          assertEquals(marker, h2.getMarker());
          assertEquals(payloadType, h2.getPayloadType());
          assertEquals(seqNumber, h2.getSeqNumber());
          assertEquals(timestamp, h2.getTimestamp());
          assertEquals(ssrc, h2.getSsrc());
      }
test_case.class_method_signature: RtpHeaderTest.testAppend()
test_case.full_signature: @Test public void testAppend()
test_case.identifier: testAppend
test_case.invocations: isFilled append assertEquals getMarker assertEquals getPayloadType assertEquals getSeqNumber assertEquals getTimestamp assertEquals getSsrc
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAppend()
focal_class.declarator: version = 2
focal_class.modifier: private
focal_class.original_string: private int version = 2;
focal_class.type: int
focal_class.var_name: version
focal_class.declarator: padding = false
focal_class.modifier: private
focal_class.original_string: private boolean padding = false;
focal_class.type: boolean
focal_class.var_name: padding
focal_class.declarator: extensions = false
focal_class.modifier: private
focal_class.original_string: private boolean extensions = false;
focal_class.type: boolean
focal_class.var_name: extensions
focal_class.declarator: cc = 0
focal_class.modifier: private
focal_class.original_string: private int cc = 0;
focal_class.type: int
focal_class.var_name: cc
focal_class.declarator: marker = false
focal_class.modifier: private
focal_class.original_string: private boolean marker = false;
focal_class.type: boolean
focal_class.var_name: marker
focal_class.declarator: payloadType
focal_class.modifier: private
focal_class.original_string: private int payloadType;
focal_class.type: int
focal_class.var_name: payloadType
focal_class.declarator: seqNumber
focal_class.modifier: private
focal_class.original_string: private int seqNumber;
focal_class.type: int
focal_class.var_name: seqNumber
focal_class.declarator: timestamp
focal_class.modifier: private
focal_class.original_string: private long timestamp;
focal_class.type: long
focal_class.var_name: timestamp
focal_class.declarator: ssrc
focal_class.modifier: private
focal_class.original_string: private long ssrc;
focal_class.type: long
focal_class.var_name: ssrc
focal_class.declarator: bin = new byte[12]
focal_class.modifier: private
focal_class.original_string: private byte[] bin = new byte[12];
focal_class.type: byte[]
focal_class.var_name: bin
focal_class.declarator: pos = 0
focal_class.modifier: private
focal_class.original_string: private int pos = 0;
focal_class.type: int
focal_class.var_name: pos
focal_class.declarator: filled = false
focal_class.modifier: private
focal_class.original_string: private boolean filled = false;
focal_class.type: boolean
focal_class.var_name: filled
focal_class.file: servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/rtp/RtpHeader.java
focal_class.identifier: RtpHeader
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: RtpHeader.RtpHeader()
focal_class.full_signature: public void RtpHeader()
focal_class.identifier: RtpHeader
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void RtpHeader()
focal_class.class_method_signature: RtpHeader.isFilled()
focal_class.full_signature: public boolean isFilled()
focal_class.identifier: isFilled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFilled()
focal_class.class_method_signature: RtpHeader.init(byte[] bin)
focal_class.full_signature: public void init(byte[] bin)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (byte[] bin)
focal_class.return: void
focal_class.signature: void init(byte[] bin)
focal_class.class_method_signature: RtpHeader.getPayloadType()
focal_class.full_signature: public int getPayloadType()
focal_class.identifier: getPayloadType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPayloadType()
focal_class.class_method_signature: RtpHeader.getSeqNumber()
focal_class.full_signature: public int getSeqNumber()
focal_class.identifier: getSeqNumber
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSeqNumber()
focal_class.class_method_signature: RtpHeader.getTimestamp()
focal_class.full_signature: public long getTimestamp()
focal_class.identifier: getTimestamp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTimestamp()
focal_class.class_method_signature: RtpHeader.getVersion()
focal_class.full_signature: public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: RtpHeader.isPadding()
focal_class.full_signature: public boolean isPadding()
focal_class.identifier: isPadding
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPadding()
focal_class.class_method_signature: RtpHeader.isExtensions()
focal_class.full_signature: public boolean isExtensions()
focal_class.identifier: isExtensions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isExtensions()
focal_class.class_method_signature: RtpHeader.getCc()
focal_class.full_signature: public int getCc()
focal_class.identifier: getCc
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCc()
focal_class.class_method_signature: RtpHeader.getSsrc()
focal_class.full_signature: public long getSsrc()
focal_class.identifier: getSsrc
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSsrc()
focal_class.class_method_signature: RtpHeader.toByteArray()
focal_class.full_signature: public byte[] toByteArray()
focal_class.identifier: toByteArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray()
focal_class.class_method_signature: RtpHeader.getMarker()
focal_class.full_signature: public boolean getMarker()
focal_class.identifier: getMarker
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean getMarker()
focal_class.class_method_signature: RtpHeader.setMarker(boolean marker)
focal_class.full_signature: public void setMarker(boolean marker)
focal_class.identifier: setMarker
focal_class.modifiers: public
focal_class.parameters: (boolean marker)
focal_class.return: void
focal_class.signature: void setMarker(boolean marker)
focal_class.class_method_signature: RtpHeader.append(byte[] data, int offset, int len)
focal_class.full_signature: protected int append(byte[] data, int offset, int len)
focal_class.identifier: append
focal_class.modifiers: protected
focal_class.parameters: (byte[] data, int offset, int len)
focal_class.return: int
focal_class.signature: int append(byte[] data, int offset, int len)
focal_class.class_method_signature: RtpHeader.init(boolean marker, byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.full_signature: public void init(boolean marker, byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (boolean marker, byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.return: void
focal_class.signature: void init(boolean marker, byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.class_method_signature: RtpHeader.init(byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.full_signature: public void init(byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.return: void
focal_class.signature: void init(byte payloadType, int seqNumber, int timestamp, long ssrc)
focal_class.class_method_signature: RtpHeader.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: protected int append(byte[] data, int offset, int len) {
          int remainder = Math.min(12 - pos, len);
          System.arraycopy(data, offset, bin, pos, remainder);
          pos += remainder;
          if (pos == 12) {
              init(bin);
              filled = true;
          }
          return len - remainder;
      }
focal_method.class_method_signature: RtpHeader.append(byte[] data, int offset, int len)
focal_method.full_signature: protected int append(byte[] data, int offset, int len)
focal_method.identifier: append
focal_method.invocations: min arraycopy init
focal_method.modifiers: protected
focal_method.parameters: (byte[] data, int offset, int len)
focal_method.return: int
focal_method.signature: int append(byte[] data, int offset, int len)