bytes

package
v0.0.0-...-c4a45a8 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteTo

func ByteTo(order binary.ByteOrder, b []byte, n interface{})

字节数据转换数字

func ByteToForBE

func ByteToForBE(b []byte, n interface{})

func ByteToForLE

func ByteToForLE(b []byte, n interface{})

func BytesToUint16

func BytesToUint16(array []byte) uint16

只是为了保存

func Extend

func Extend(dest, src []byte) []byte

func Join

func Join(ss ...string) string

func JoinObj

func JoinObj(objs ...interface{}) string

func Merge

func Merge(bs ...[]byte) []byte

func ToByte

func ToByte(order binary.ByteOrder, n interface{}) []byte

数字转换字节数组 支持uint16/uint32/uint64/int16/int32/int64/bool及其指针 int和uint不可以

func ToByteForBE

func ToByteForBE(n interface{}) []byte

func ToByteForLE

func ToByteForLE(n interface{}) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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