package wire

import (
	

	
)

// A PathChallengeFrame is a PATH_CHALLENGE frame
type PathChallengeFrame struct {
	Data [8]byte
}

func parsePathChallengeFrame( []byte,  protocol.Version) (*PathChallengeFrame, int, error) {
	 := &PathChallengeFrame{}
	if len() < 8 {
		return nil, 0, io.EOF
	}
	copy(.Data[:], )
	return , 8, nil
}

func ( *PathChallengeFrame) ( []byte,  protocol.Version) ([]byte, error) {
	 = append(, pathChallengeFrameType)
	 = append(, .Data[:]...)
	return , nil
}

// Length of a written frame
func ( *PathChallengeFrame) ( protocol.Version) protocol.ByteCount {
	return 1 + 8
}