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

Method writeIntArray

protocol/nbt/encoder.go:92–97  ·  view source on GitHub ↗
(il []int32)

Source from the content-addressed store, hash-verified

90}
91
92func (e *Encoder) writeIntArray(il []int32) error {
93 if err := e.writeInt(int32(len(il))); err != nil {
94 return err
95 }
96 return binary.Write(e.w, binary.BigEndian, il)
97}
98
99func (e *Encoder) writeLongArray(ll []int64) error {
100 if err := e.writeInt(int32(len(ll))); err != nil {

Callers 2

encodeCompoundMapMethod · 0.95
encodeListMethod · 0.95

Calls 2

writeIntMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected