bitstring

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitString

type BitString struct {
	// contains filtered or unexported fields
}

BitString struct.

func DecodeBits

func DecodeBits(encodedBits string) (*BitString, error)

DecodeBits decode bits.

func NewBitString

func NewBitString(length int) *BitString

NewBitString return bitstring.

func (*BitString) EncodeBits

func (b *BitString) EncodeBits() (string, error)

EncodeBits encode bits.

func (*BitString) Get

func (b *BitString) Get(position int) (bool, error)

Get bit.

func (*BitString) Set

func (b *BitString) Set(position int, bitSet bool) error

Set bit.

Jump to

Keyboard shortcuts

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