bitstrings

package
v0.0.0-...-817062f Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPrefix

func HasPrefix(x, prefix BitString) bool

Types

type BitString

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

func FromBytes

func FromBytes(n int, buf []byte) BitString

func (BitString) AppendBit

func (bs BitString) AppendBit(x bool) BitString

func (BitString) At

func (bs BitString) At(i int) bool

func (BitString) EnumBytePrefixes

func (x BitString) EnumBytePrefixes() [][]byte

func (BitString) Len

func (bs BitString) Len() int

func (BitString) LongString

func (x BitString) LongString() string

func (BitString) Marshal

func (bs BitString) Marshal() []byte

func (BitString) MarshalBinary

func (bs BitString) MarshalBinary() ([]byte, error)

func (BitString) String

func (bs BitString) String() string

func (*BitString) UnmarshalBinary

func (bs *BitString) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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