Source File
raw_packet.go
Belonging Package
github.com/pion/rtcp
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage rtcpimport// RawPacket represents an unparsed RTCP packet. It's returned by Unmarshal when// a packet with an unknown type is encountered.type RawPacket []byte// Marshal encodes the packet in binary.func ( RawPacket) () ([]byte, error) {return , nil}// Unmarshal decodes the packet from binary.func ( *RawPacket) ( []byte) error {if len() < (headerLength) {return errPacketTooShort}* =var Headerreturn .Unmarshal()}// Header returns the Header associated with this packet.func ( RawPacket) () Header {var Headerif := .Unmarshal(); != nil {return Header{}}return}// DestinationSSRC returns an array of SSRC values that this packet refers to.func ( *RawPacket) () []uint32 {return []uint32{}}func ( RawPacket) () string {:= fmt.Sprintf("RawPacket: %v", ([]byte)())return}// MarshalSize returns the size of the packet once marshaledfunc ( RawPacket) () int {return len()}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |