MCPcopy
hub / github.com/tinylib/msgp / Msgsize

Method Msgsize

msgp/setof/generated.go:964–971  ·  view source on GitHub ↗

Msgsize returns the maximum size of the message.

()

Source from the content-addressed store, hash-verified

962
963// Msgsize returns the maximum size of the message.
964func (s Byte) Msgsize() int {
965 if s == nil {
966 return msgp.NilSize
967 }
968 size := msgp.ArrayHeaderSize
969 size += len(s) * msgp.ByteSize
970 return size
971}
972
973// ByteFromSlice creates a Byte from a slice.
974func ByteFromSlice(s []byte) Byte {

Callers 1

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected