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

Method BitSet

protocol/net/io/encoding/writer.go:149–159  ·  view source on GitHub ↗
(data BitSet)

Source from the content-addressed store, hash-verified

147}
148
149func (w Writer) BitSet(data BitSet) error {
150 if err := w.VarInt(int32(len(data))); err != nil {
151 return err
152 }
153 for _, l := range data {
154 if err := w.Long(l); err != nil {
155 return err
156 }
157 }
158 return nil
159}
160
161func (w Writer) FixedBitSet(data FixedBitSet) error {
162 for _, l := range data {

Callers

nothing calls this directly

Calls 2

VarIntMethod · 0.95
LongMethod · 0.95

Tested by

no test coverage detected