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

Method Int

protocol/nbt/staticReader.go:120–136  ·  view source on GitHub ↗
(dst *int32)

Source from the content-addressed store, hash-verified

118}
119
120func (r StaticReader) Int(dst *int32) (string, error) {
121 typeId, err := r.readByte()
122 if err != nil {
123 return "", err
124 }
125 if typeId != Int {
126 return "", fmt.Errorf("tried reading TAG_Int, got %d", typeId)
127 }
128
129 name, err := r.readString()
130 if err != nil {
131 return "", err
132 }
133
134 *dst, err = r.readInt()
135 return name, err
136}
137
138func (r StaticReader) Long(dst *int64) (string, error) {
139 typeId, err := r.readByte()

Callers 3

encodeCompoundStructMethod · 0.45
encodeCompoundMapMethod · 0.45
encodeListMethod · 0.45

Calls 3

readByteMethod · 0.95
readStringMethod · 0.95
readIntMethod · 0.95

Tested by

no test coverage detected