bitmap

package
v0.0.0-...-67c09b2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitSize = 8 //一个字节8位
)

Variables

This section is empty.

Functions

func ByteToBinaryString

func ByteToBinaryString(data byte) (str string)

ByteToBinaryString函数来源: Go语言版byte变量的二进制字符串表示 http://www.sharejs.com/codes/go/4357

Types

type Bitmap

type Bitmap struct {
	BitArray  []byte
	ArraySize uint32
}

func NewBitmap

func NewBitmap(max uint32) *Bitmap

func (*Bitmap) Clear

func (bitmap *Bitmap) Clear(i uint32)

func (*Bitmap) Set

func (bitmap *Bitmap) Set(i uint32)

func (*Bitmap) Test

func (bitmap *Bitmap) Test(i uint32) byte

Jump to

Keyboard shortcuts

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