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

Method marshal

handshake_messages.go:1687–1695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1685}
1686
1687func (m *finishedMsg) marshal() ([]byte, error) {
1688 var b cryptobyte.Builder
1689 b.AddUint8(typeFinished)
1690 b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
1691 b.AddBytes(m.verifyData)
1692 })
1693
1694 return b.Bytes()
1695}
1696
1697func (m *finishedMsg) unmarshal(data []byte) bool {
1698 s := cryptobyte.String(data)

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected