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

Interface binaryMarshaler

handshake_server_tls13.go:327–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325func cloneHash(in hash.Hash, h crypto.Hash) hash.Hash {
326 // Recreate the interface to avoid importing encoding.
327 type binaryMarshaler interface {
328 MarshalBinary() (data []byte, err error)
329 UnmarshalBinary(data []byte) error
330 }
331 marshaler, ok := in.(binaryMarshaler)
332 if !ok {
333 return nil

Callers 2

cloneHashFunction · 0.80
cloneHashFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…