MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / uintToVarintBytes

Function uintToVarintBytes

tlsutil/ccache.go:40–44  ·  view source on GitHub ↗
(x uint)

Source from the content-addressed store, hash-verified

38}
39
40func uintToVarintBytes(x uint) []byte {
41 buf := make([]byte, binary.MaxVarintLen64)
42 n := binary.PutUvarint(buf, uint64(x))
43 return buf[:n]
44}
45
46func (e *sessionCacheEntry) MarshalBinary() (data []byte, err error) {
47 buf := new(bytes.Buffer)

Callers 1

MarshalBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected