tool

package
v0.28.20241114122041 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi

func Btoi(b []byte, offset int, size int) int64

func Btoi16

func Btoi16(b []byte, offset int) int16

func Btoi32

func Btoi32(b []byte, offset int) int32

func Btoi64

func Btoi64(b []byte, offset int) int64

func Btoui16

func Btoui16(b []byte, offset int) uint16

func Btoui32

func Btoui32(b []byte, offset int) uint32

func Itob16

func Itob16(v int16) []byte

func Itob32

func Itob32(v int32) []byte

func Itob64

func Itob64(v int64) []byte

整数 字节转换区 64 8字节 32 4字节 16 2字节

func SE added in v0.28.20240806162427

func SE[T int8 | int16 | int32 | int64](t *BitsReader) (r T)

signed integer Exp-Golomb-coded syntax element with the left bit first

func U added in v0.28.20240806162427

func U[T uint8 | uint16 | uint32 | uint64](t *BitsReader, n uint8) (r T)

func UE added in v0.28.20240806162427

func UE[T uint8 | uint16 | uint32 | uint64](t *BitsReader) (r T)

unsigned integer Exp-Golomb-coded syntax element with the left bit first

Types

type BitsReader added in v0.28.20240806162427

type BitsReader struct {
	Data []byte
	// contains filtered or unexported fields
}

func NewBitsReader added in v0.28.20240806162427

func NewBitsReader(Data []byte) *BitsReader

Jump to

Keyboard shortcuts

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