bitutil

package
v0.0.0-...-b78b3a4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

包bitutil实现快速按位操作。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ANDBytes

func ANDBytes(dst, a, b []byte) int

AndBytes和A和B中的字节。假定目标具有足够的 空间。返回字节数和'd'。

func CompressBytes

func CompressBytes(data []byte) []byte

compressBytes根据稀疏位集压缩输入字节片 表示算法。如果结果大于原始输入,则不

func DecompressBytes

func DecompressBytes(data []byte, target int) ([]byte, error)

解压缩字节用已知的目标大小解压缩数据。如果输入数据 匹配目标的大小,这意味着在第一个压缩过程中没有进行压缩 地点。

func Fuzz

func Fuzz(data []byte) int

Fuzz实现了Go-Fuzz引信方法来测试各种编码方法 调用。

func ORBytes

func ORBytes(dst, a, b []byte) int

ORBYTES或A和B中的字节。假定目标具有足够的 空间。返回字节数或'd'。

func TestBytes

func TestBytes(p []byte) bool

测试字节测试输入字节片中是否设置了任何位。

func XORBytes

func XORBytes(dst, a, b []byte) int

xorbytes xor是a和b中的字节。假定目标具有足够的 空间。返回字节数xor'd。

Types

This section is empty.

Jump to

Keyboard shortcuts

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