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

Method ReadInt16

thrift/compact.go:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (r *compactReader) ReadInt16() (int16, error) {
51 v, err := r.readVarint("int16", math.MinInt16, math.MaxInt16)
52 return int16(v), err
53}
54
55func (r *compactReader) ReadInt32() (int32, error) {
56 v, err := r.readVarint("int32", math.MinInt32, math.MaxInt32)

Callers 1

ReadFieldMethod · 0.95

Calls 1

readVarintMethod · 0.95

Tested by

no test coverage detected