MCPcopy Create free account
hub / github.com/segmentio/encoding / ReadInt32

Method ReadInt32

thrift/binary.go:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (r *binaryReader) ReadInt32() (int32, error) {
64 b, err := r.read(4)
65 if len(b) < 4 {
66 return 0, err
67 }
68 return int32(binary.BigEndian.Uint32(b)), nil
69}
70
71func (r *binaryReader) ReadInt64() (int64, error) {
72 b, err := r.read(8)

Callers 3

ReadMessageMethod · 0.95
ReadListMethod · 0.95
ReadMapMethod · 0.95

Calls 2

readMethod · 0.95
Uint32Method · 0.80

Tested by

no test coverage detected