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

Method ReadInt

msgp/read.go:785–796  ·  view source on GitHub ↗

ReadInt reads an int from the reader

()

Source from the content-addressed store, hash-verified

783
784// ReadInt reads an int from the reader
785func (m *Reader) ReadInt() (i int, err error) {
786 if smallint {
787 var in int32
788 in, err = m.ReadInt32()
789 i = int(in)
790 return
791 }
792 var in int64
793 in, err = m.ReadInt64()
794 i = int(in)
795 return
796}
797
798// ReadUint64 reads a uint64 from the reader
799func (m *Reader) ReadUint64() (u uint64, err error) {

Callers 6

FuzzReaderFunction · 0.95
DecodeMsgMethod · 0.80
DecodeMsgMethod · 0.80
DecodeMsgMethod · 0.80
DecodeMsgMethod · 0.80
DecodeMsgMethod · 0.80

Calls 2

ReadInt32Method · 0.95
ReadInt64Method · 0.95

Tested by 2

FuzzReaderFunction · 0.76
DecodeMsgMethod · 0.64