bitmap

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MaxSize = uint16(65535)

MaxSize 最大支持的大小

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitmap

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

Bitmap Bitmap结构体

func New

func New(size uint16) *Bitmap

New 初始化一个Bitmap

func (*Bitmap) Get

func (b *Bitmap) Get(offset uint16) uint8

Get 获取offset位置处的value值

func (*Bitmap) Set

func (b *Bitmap) Set(offset uint16, value uint8) bool

Set 将offset位置的值设置为value(0/1)

func (*Bitmap) Size

func (b *Bitmap) Size() uint16

Size 返回Bitmap大小

Jump to

Keyboard shortcuts

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