mirror of
https://github.com/pion/webrtc.git
synced 2025-11-01 03:04:06 +08:00
Add all the boilerplate for handling this implement InvalidMandatoryParameter and UnrecognizedChunkType
17 lines
504 B
Go
17 lines
504 B
Go
package sctp
|
|
|
|
// ErrorCauseInvalidMandatoryParameter represents an SCTP error cause
|
|
type ErrorCauseInvalidMandatoryParameter struct {
|
|
ErrorCauseHeader
|
|
}
|
|
|
|
// Marshal populates a []byte from a struct
|
|
func (e *ErrorCauseInvalidMandatoryParameter) Marshal() ([]byte, error) {
|
|
return e.ErrorCauseHeader.Marshal()
|
|
}
|
|
|
|
// Unmarshal populates a ErrorCauseUnrecognizedChunkType from raw data
|
|
func (e *ErrorCauseInvalidMandatoryParameter) Unmarshal(raw []byte) error {
|
|
return e.ErrorCauseHeader.Unmarshal(raw)
|
|
}
|