MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / readInt

Method readInt

protocol/nbt/qnbt/primitive.go:131–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (d *Decoder) readInt() (int32, error) {
132 if err := d.rd.fill(4); err != nil {
133 return 0, err
134 }
135
136 return int32(binary.BigEndian.Uint32(d.load(4))), nil
137}
138
139func (d *Decoder) readIntPtr(ptr unsafe.Pointer) error {
140 if err := d.rd.fill(4); err != nil {

Callers 9

readLongArrayMethod · 0.95
readIntArrayMethod · 0.95
readByteArrayMethod · 0.95
decodeStructCompoundMethod · 0.95
discardMethod · 0.95
decodeListSliceMethod · 0.95
decodeListArrayMethod · 0.95
readListArrayMethod · 0.95
discardListMethod · 0.95

Calls 2

loadMethod · 0.95
fillMethod · 0.80

Tested by

no test coverage detected