Help us shape the future of Go! Take the 2026 Go Developer Survey

bitset

package
v0.57.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSet

type BitSet struct {

	// Set is the set of uint64 representing the bitset.
	Set []uint64 `protobuf:"varint,1,rep,packed,name=set,proto3" json:"set,omitempty"`
	// Len is the length of the bitset.
	Len uint32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	// contains filtered or unexported fields
}

BitSet is a block-backed BitSet representation.

func NewBitset

func NewBitset(words []uint64, length uint32) *BitSet

NewBitset constructs a new bitset from existing words.

func (*BitSet) Clone

func (b *BitSet) Clone() *BitSet

Clone clones the bitset block.

func (*BitSet) CloneMessageVT

func (m *BitSet) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*BitSet) CloneVT

func (m *BitSet) CloneVT() *BitSet

func (*BitSet) EqualMessageVT

func (this *BitSet) EqualMessageVT(thatMsg any) bool

func (*BitSet) EqualVT

func (this *BitSet) EqualVT(that *BitSet) bool

func (*BitSet) GetLen

func (x *BitSet) GetLen() uint32

func (*BitSet) GetSet

func (x *BitSet) GetSet() []uint64

func (*BitSet) MarshalBlock

func (b *BitSet) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*BitSet) MarshalJSON

func (x *BitSet) MarshalJSON() ([]byte, error)

MarshalJSON marshals the BitSet to JSON.

func (*BitSet) MarshalProtoJSON

func (x *BitSet) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the BitSet message to JSON.

func (*BitSet) MarshalProtoText

func (x *BitSet) MarshalProtoText() string

func (*BitSet) MarshalToSizedBufferVT

func (m *BitSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BitSet) MarshalToVT

func (m *BitSet) MarshalToVT(dAtA []byte) (int, error)

func (*BitSet) MarshalVT

func (m *BitSet) MarshalVT() (dAtA []byte, err error)

func (*BitSet) ProtoMessage

func (*BitSet) ProtoMessage()

func (*BitSet) Reset

func (x *BitSet) Reset()

func (*BitSet) SizeVT

func (m *BitSet) SizeVT() (n int)

func (*BitSet) String

func (x *BitSet) String() string

func (*BitSet) UnmarshalBlock

func (b *BitSet) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block to the object.

func (*BitSet) UnmarshalJSON

func (x *BitSet) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the BitSet from JSON.

func (*BitSet) UnmarshalProtoJSON

func (x *BitSet) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the BitSet message from JSON.

func (*BitSet) UnmarshalVT

func (m *BitSet) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL