parsers

package
v0.0.0-...-c0334d6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToUint16

func ByteToUint16(data []byte) uint16

二进制转uint16.

func ByteToUint32

func ByteToUint32(data []byte) uint32

二进制转uint32

func LoadJsonTo

func LoadJsonTo(path string, conf interface{}) error

读取本地json文件并解析到目标结构中

func Marshal

func Marshal(pb proto.Message) ([]byte, error)

Marshal TODO

func SetBigEndian

func SetBigEndian()

设置大字端. 默认为小字端.

func SetLittleEndian

func SetLittleEndian()

设置小字端. 默认为小字端.

func Uint16ToByte

func Uint16ToByte(dst []byte, v uint16)

二进制写入uint16到[]byte.

func Uint32ToByte

func Uint32ToByte(dst []byte, v uint32)

二进制写入uint32到[]byte.

func Unmarshal

func Unmarshal(buf []byte, pb proto.Message) error

Unmarshal TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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