binary

package
v0.0.0-...-d88b78f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(original []byte) ([]byte, error)

Compress compresses the input data using DEFLATE algorithm.

func Decompress

func Decompress(compressed []byte) ([]byte, error)

Decompress decompresses the input data using DEFLATE algorithm.

func Get

func Get(mask uint64, position int) bool

특정 비트가 1인지 확인하는 함수

func GetRange

func GetRange(mask uint64, start, end int) uint64

start부터 end까지의 비트를 반환하는 함수

func Set

func Set(mask uint64, position int, flag bool) uint64

특정 비트를 설정하는 함수

func SetRange

func SetRange(mask uint64, start, end, value int) uint64

start부터 end까지의 비트를 설정하는 함수

Types

This section is empty.

Jump to

Keyboard shortcuts

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