src/org/jnetpcap/protocol/voip/Rtp.java
@HeaderLength
	public static int headerLength(final JBuffer buffer, final int offset) {
		final int rtpBaseHeader = baseHeaderLength(buffer, offset);

		if ((buffer.getByte(offset) & EXTENSION_MASK) > 0) {
			return rtpBaseHeader
					+ Rtp.Extension.headerLength(buffer, offset + rtpBaseHeader);
		} else {
			return rtpBaseHeader;
		}
	}
/**
	 * Determines the length of the header in octets. The value is calculated by
	 * adding to the length of the static part of the header the length of the
	 * CSRC table. The CC field contains number of 32-bit entries within the
	 * table.
	 * 
	 * @param buffer
	 *          buffer containing the header data
	 * @param offset
	 *          offset within the buffer of the start of the header
	 * @return length of the header in bytes
	 */
Determines the length of the header in octets. The value is calculated by
adding to the length of the static part of the header the length of the
CSRC table. The CC field contains number of 32-bit entries within the
table.

@param buffer
buffer containing the header data
@param offset
offset within the buffer of the start of the header
@return length of the header in bytes
Determines the length of the header in octets . The value is calculated by adding to the length of the static part of the header the length of the CSRC table . The CC field contains number of 32 - bit entries within the table . @param buffer buffer containing the header data @param offset offset within the buffer of the start of the header @return length of the header in bytes
@HeaderLength
	public static int headerLength(final JBuffer buffer, final int offset) {
		final int rtpBaseHeader = baseHeaderLength(buffer, offset);
		if ((buffer.getByte(offset) & EXTENSION_MASK) > 0) {
			return rtpBaseHeader
					+ Rtp.Extension.headerLength(buffer, offset + rtpBaseHeader);
		} else {
			return rtpBaseHeader;
		}
	}
@ HeaderLength public static int headerLength ( final JBuffer buffer , final int offset ) { final int rtpBaseHeader = baseHeaderLength ( buffer , offset ) ; if ( ( buffer . getByte ( offset ) & EXTENSION_MASK ) > 0 ) { return rtpBaseHeader + Rtp . Extension . headerLength ( buffer , offset + rtpBaseHeader ) ; } else { return rtpBaseHeader ; } }
Determines the length of the header in octets.
Determines the length of the header in octets .