code: func (bv *BitVector) writeBits(output store.IndexOutput) error {
  	return store.Stream(output).
  		WriteInt(int32(bv.size)).
  		WriteInt(int32(bv.Count())).
  		WriteBytes(bv.bits).
  		Close()
  }
docs: /* Write as a bit set */