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

Method ReadUint

msgp/read.go:943–954  ·  view source on GitHub ↗

ReadUint reads a uint from the reader

()

Source from the content-addressed store, hash-verified

941
942// ReadUint reads a uint from the reader
943func (m *Reader) ReadUint() (u uint, err error) {
944 if smallint {
945 var un uint32
946 un, err = m.ReadUint32()
947 u = uint(un)
948 return
949 }
950 var un uint64
951 un, err = m.ReadUint64()
952 u = uint(un)
953 return
954}
955
956// ReadByte is analogous to ReadUint8.
957//

Callers 3

FuzzReaderFunction · 0.95
DecodeMsgMethod · 0.80
DecodeMsgMethod · 0.80

Calls 2

ReadUint32Method · 0.95
ReadUint64Method · 0.95

Tested by 1

FuzzReaderFunction · 0.76