Documentation ¶
Overview ¶
Package bele 提供了大小端的转换操作
be是big endian的缩写,即大端 le是little endian的缩写,即小端
assume local is `le`
Index ¶
- func BEFloat64(p []byte) (ret float64)
- func BEPutUint24(out []byte, in uint32)
- func BEPutUint32(out []byte, in uint32)
- func BEUint16(p []byte) uint16
- func BEUint24(p []byte) uint32
- func BEUint32(p []byte) (ret uint32)
- func LEPutUint32(out []byte, in uint32)
- func LEUint32(p []byte) (ret uint32)
- func WriteBE(writer io.Writer, in interface{}) error
- func WriteBEUint24(writer io.Writer, in uint32) error
- func WriteLE(writer io.Writer, in interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BEPutUint24 ¶
func BEPutUint32 ¶
func LEPutUint32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.