MCPcopy Create free account
hub / github.com/XTLS/Go / marshal

Method marshal

handshake_messages.go:929–933  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

927type endOfEarlyDataMsg struct{}
928
929func (m *endOfEarlyDataMsg) marshal() []byte {
930 x := make([]byte, 4)
931 x[0] = typeEndOfEarlyData
932 return x
933}
934
935func (m *endOfEarlyDataMsg) unmarshal(data []byte) bool {
936 return len(data) == 4

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected