{"modulePath":"github.com/nokia/danm","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bitarray\n\n## Constants\n\n```go\nconst (\n\tMaxSupportedNetmask = 32\n)\n```\n\n## Types\n\n```go\ntype BitArray struct {\n\t// contains filtered or unexported fields\n}\n```\nBitArray is type to represent an arbitrary long array of bits\n\n```go\nfunc CreateBitArrayFromIpnet(ipnet *net.IPNet) (*BitArray, error)\n```\n\n```go\nfunc NewBitArray(len int) (*BitArray, error)\n```\nNewBitArray creates a new, empty BitArray object Returns error if length is zero, otherwise a pointer to the array\n\n```go\nfunc NewBitArrayFromBase64(text string) *BitArray\n```\nNewBitArrayFromBase64 creates a new BitArray from a Base64 encoded string\n\n```go\nfunc (arr *BitArray) Encode() string\n```\nEncode returns the Base64 encoded string of the BitArray\n\n```go\nfunc (arr *BitArray) Get(pos uint32) bool\n```\nGet returns whether the input position of the BitArray is set, or not\n\n```go\nfunc (arr *BitArray) Len() int\n```\nLen returns the length of the BitArray\n\n```go\nfunc (arr *BitArray) Reset(pos uint32)\n```\nReset unsets the bit at the input position of the BitArray\n\n```go\nfunc (arr *BitArray) Set(pos uint32)\n```\nSet sets the bit at the input position of the BitArray\n\n","path":"github.com/nokia/danm/pkg/bitarray","name":"bitarray","synopsis":"","isRedistributable":true}
