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

Method marshal

handshake_messages.go:1506–1510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1504type serverHelloDoneMsg struct{}
1505
1506func (m *serverHelloDoneMsg) marshal() []byte {
1507 x := make([]byte, 4)
1508 x[0] = typeServerHelloDone
1509 return x
1510}
1511
1512func (m *serverHelloDoneMsg) unmarshal(data []byte) bool {
1513 return len(data) == 4

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected