mirror of
				https://github.com/pion/webrtc.git
				synced 2025-10-31 10:46:39 +08:00 
			
		
		
		
	Add Header() method to Packet
Simplifies the API. Unmarshal can now return one Packet value instead of both a packet and a header. Relates to #119
This commit is contained in:
		 Max Hawkins
					Max Hawkins
				
			
				
					committed by
					
						 Woodrow Douglass
						Woodrow Douglass
					
				
			
			
				
	
			
			
			 Woodrow Douglass
						Woodrow Douglass
					
				
			
						parent
						
							5655d151b1
						
					
				
				
					commit
					0ef6602adb
				
			| @@ -2,6 +2,8 @@ package rtcp | ||||
|  | ||||
| // Packet represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session | ||||
| type Packet interface { | ||||
| 	Header() Header | ||||
|  | ||||
| 	Marshal() ([]byte, error) | ||||
| 	Unmarshal(rawPacket []byte) error | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user