bit

package
v0.0.0-...-bbff6a2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FromByte

func FromByte(b byte) []byte

func FromFloat32

func FromFloat32(f float32) []byte

func FromFloat64

func FromFloat64(f float64) []byte

func FromInt

func FromInt(i int) []byte

FromInt uint32转换成字节数组

func FromUint16

func FromUint16(i uint16) []byte

FromUint16 转换成字节数组

func FromUint32

func FromUint32(i uint32) []byte

FromUint32 uint32转换成字节数组

func FromUint64

func FromUint64(i uint64) []byte

FromUint64 uint64 转换成字节数组

func ToFloat32

func ToFloat32(b []byte) float32

func ToFloat64

func ToFloat64(b []byte) float64

func ToInt

func ToInt(b []byte) (i int)

ToInt 字节切片转换成 int

func ToInt16

func ToInt16(b []byte) (i int16)

ToInt16 字节切片转换成 int16

func ToInt32

func ToInt32(b []byte) (i int32)

func ToUint

func ToUint(b []byte) (i uint)

func ToUint16

func ToUint16(b []byte) uint16

ToUint16 字节切片转换成 uint16

func ToUint32

func ToUint32(b []byte) (i uint32)

ToUint32 字节切片转换成uint32

func ToUint64

func ToUint64(b []byte) uint64

ToUint64 字节切片转换成uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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