MCPcopy Create free account
hub / github.com/apache/fory / ReadInt8

Method ReadInt8

go/fory/buffer.go:325–334  ·  view source on GitHub ↗

ReadInt8 reads an int8 and sets error on bounds violation

(err *Error)

Source from the content-addressed store, hash-verified

323
324// ReadInt8 reads an int8 and sets error on bounds violation
325func (b *ByteBuffer) ReadInt8(err *Error) int8 {
326 if b.readerIndex+1 > len(b.data) {
327 if !b.fill(1, err) {
328 return 0
329 }
330 }
331 v := int8(b.data[b.readerIndex])
332 b.readerIndex++
333 return v
334}
335
336// ReadInt16 reads an int16 and sets error on bounds violation
337func (b *ByteBuffer) ReadInt16(err *Error) int16 {

Callers 15

requireRootTypeIDFunction · 0.95
TestDecimalWireEncodingFunction · 0.95
decodeTypeDefFunction · 0.95
ReadDataMethod · 0.45
readSameTypeMethod · 0.45
readDifferentTypesMethod · 0.45
readDataMethod · 0.45
readSameTypeMethod · 0.45
readDifferentTypesMethod · 0.45
ReadDataMethod · 0.45

Calls 2

fillMethod · 0.95
int8Function · 0.50