bitmap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

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