data

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSum

func CheckSum(data []byte) uint16

校验和计算

func Compress

func Compress(data []uint8) ([]uint8, error)

压缩数据

func CompressBr

func CompressBr(data []uint8) ([]uint8, error)

func GZip

func GZip(data []uint8) ([]uint8, error)

func UnGZip

func UnGZip(data []uint8) ([]uint8, error)

func UnZip

func UnZip(data []uint8) ([]uint8, error)

func Uncompress

func Uncompress(data []uint8) ([]uint8, error)

解压缩数据块

func UncompressBr

func UncompressBr(data []uint8) ([]uint8, error)

func Zip

func Zip(data []uint8) ([]uint8, error)

Types

type Generator

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

生成器结构体,包含一个原子整数

func NewGenerator

func NewGenerator(val uint32) *Generator

func (*Generator) Generate

func (g *Generator) Generate() uint32

生成方法,返回当前计数器的值,并原子地加一

func (*Generator) SetCounter

func (g *Generator) SetCounter(v uint32)

Jump to

Keyboard shortcuts

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