Documentation ¶
Overview ¶
Package bele 提供了大小端的转换操作
be是big endian的缩写,即大端 le是little endian的缩写,即小端
assume local is `le`
Index ¶
- func BEFloat64(p []byte) (ret float64)
- func BEPutUint16(out []byte, in uint16)
- func BEPutUint24(out []byte, in uint32)
- func BEPutUint32(out []byte, in uint32)
- func BEPutUint64(out []byte, in uint64)
- func BEUint16(p []byte) uint16
- func BEUint24(p []byte) uint32
- func BEUint32(p []byte) (ret uint32)
- func BEUint64(p []byte) (ret uint64)
- func LEPutUint32(out []byte, in uint32)
- func LEUint32(p []byte) (ret uint32)
- func ReadBEUint16(r io.Reader) (uint16, error)
- func ReadBEUint24(r io.Reader) (uint32, error)
- func ReadBEUint32(r io.Reader) (uint32, error)
- func ReadBEUint64(r io.Reader) (uint64, error)
- func ReadBytes(r io.Reader, n int) ([]byte, error)
- func ReadLEUint32(r io.Reader) (uint32, error)
- func ReadString(r io.Reader, n int) (string, error)
- func ReadUint8(r io.Reader) (uint8, error)
- 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 BEPutUint16 ¶ added in v0.13.4
func BEPutUint24 ¶
func BEPutUint32 ¶
func BEPutUint64 ¶ added in v0.13.4
func LEPutUint32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.