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

package datachannel

// channelAck is used to ACK a DataChannel open
type channelAck struct{}

const (
	channelOpenAckLength = 4
)

// Marshal returns raw bytes for the given message
func ( *channelAck) () ([]byte, error) {
	 := make([]byte, channelOpenAckLength)
	[0] = uint8(dataChannelAck)

	return , nil
}

// Unmarshal populates the struct with the given raw data
func ( *channelAck) ( []byte) error {
	// Message type already checked in Parse and there is no further data
	return nil
}

func ( channelAck) () string {
	return "ACK"
}