Debian Codegraph @

param_ecn_capable.go

raw
1 // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
2 // SPDX-License-Identifier: MIT
3
4 package sctp
5
6 type paramECNCapable struct {
7 paramHeader
8 }
9
10 func (r *paramECNCapable) marshal() ([]byte, error) {
11 r.typ = ecnCapable
12 r.raw = []byte{}
13
14 return r.paramHeader.marshal()
15 }
16
17 func (r *paramECNCapable) unmarshal(raw []byte) (param, error) {
18 err := r.paramHeader.unmarshal(raw)
19 if err != nil {
20 return nil, err
21 }
22
23 return r, nil
24 }