// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package sctp

type paramHeartbeatInfo struct {
	paramHeader
	heartbeatInformation []byte
}

func ( *paramHeartbeatInfo) () ([]byte, error) {
	.typ = heartbeatInfo
	.raw = .heartbeatInformation

	return .paramHeader.marshal()
}

func ( *paramHeartbeatInfo) ( []byte) (param, error) {
	 := .paramHeader.unmarshal()
	if  != nil {
		return nil, 
	}
	.heartbeatInformation = .raw

	return , nil
}