bele

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 3 Imported by: 75

Documentation

Overview

Package bele 提供了大小端的转换操作

be是big endian的缩写,即大端 le是little endian的缩写,即小端

assume local is `le`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BEFloat64

func BEFloat64(p []byte) (ret float64)

func BEPutUint24

func BEPutUint24(out []byte, in uint32)

func BEPutUint32

func BEPutUint32(out []byte, in uint32)

func BEUint16

func BEUint16(p []byte) uint16

func BEUint24

func BEUint24(p []byte) uint32

func BEUint32

func BEUint32(p []byte) (ret uint32)

func LEPutUint32

func LEPutUint32(out []byte, in uint32)

func LEUint32

func LEUint32(p []byte) (ret uint32)

func WriteBE

func WriteBE(writer io.Writer, in interface{}) error

func WriteBEUint24

func WriteBEUint24(writer io.Writer, in uint32) error

func WriteLE

func WriteLE(writer io.Writer, in interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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