chunk.go 240 B

123456789101112
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. package sctp
  4. type chunk interface {
  5. unmarshal(raw []byte) error
  6. marshal() ([]byte, error)
  7. check() (bool, error)
  8. valueLength() int
  9. }