MCPcopy
hub / github.com/gofiber/fiber / Msgsize

Method Msgsize

middleware/cache/manager_msgp.go:170–173  ·  view source on GitHub ↗

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

()

Source from the content-addressed store, hash-verified

168
169// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
170func (z *cachedHeader) Msgsize() (s int) {
171 s = 1 + 4 + msgp.BytesPrefixSize + len(z.key) + 6 + msgp.BytesPrefixSize + len(z.value)
172 return
173}
174
175// DecodeMsg implements msgp.Decodable
176func (z *item) DecodeMsg(dc *msgp.Reader) (err error) {

Callers 3

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by 2