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

Function readUint8LengthPrefixed

handshake_messages.go:53–55  ·  view source on GitHub ↗

readUint8LengthPrefixed acts like s.ReadUint8LengthPrefixed, but targets a []byte instead of a cryptobyte.String.

(s *cryptobyte.String, out *[]byte)

Source from the content-addressed store, hash-verified

51// readUint8LengthPrefixed acts like s.ReadUint8LengthPrefixed, but targets a
52// []byte instead of a cryptobyte.String.
53func readUint8LengthPrefixed(s *cryptobyte.String, out *[]byte) bool {
54 return s.ReadUint8LengthPrefixed((*cryptobyte.String)(out))
55}
56
57// readUint16LengthPrefixed acts like s.ReadUint16LengthPrefixed, but targets a
58// []byte instead of a cryptobyte.String.

Callers 4

unmarshalMethod · 0.85
unmarshalMethod · 0.85
unmarshalMethod · 0.85
unmarshalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…