Documentation
¶
Overview ¶
Package bytevalues ead and write primitive datatypes from/to byte
Index ¶
- Constants
- func GetFloat32(buf []byte, byteOrder int) float32
- func GetFloat64(buf []byte, byteOrder int) float64
- func GetInt32(buf []byte, byteOrder int) uint32
- func GetInt64(buf []byte, byteOrder int) uint64
- func PutFloat32(buf []byte, floatValue float32, byteOrder int)
- func PutFloat64(buf []byte, floatValue float64, byteOrder int)
- func PutInt32(buf []byte, intValue int32, byteOrder int)
- func PutInt64(buf []byte, intValue int64, byteOrder int)
Constants ¶
const ( BigEndian = 0 LittleEndian = 1 )
Byte order: big endian or little endian
Variables ¶
This section is empty.
Functions ¶
func GetFloat32 ¶
GetFloat32 Returns float32 read primitive datatypes from/to byte sequences, allowing the byte order to be specified
func GetFloat64 ¶
GetFloat64 Returns float64 read primitive datatypes from/to byte sequences, allowing the byte order to be specified
func GetInt32 ¶
GetInt32 Returns int32 read primitive datatypes from/to byte sequences, allowing the byte order to be specified
func GetInt64 ¶
GetInt64 Returns int64 read primitive datatypes from/to byte sequences, allowing the byte order to be specified
func PutFloat32 ¶
PutFloat32 write primitive datatypes from/to byte sequences, allowing the byte order to be specified
func PutFloat64 ¶
PutFloat64 write primitive datatypes from/to byte sequences, allowing the byte order to be specified
Types ¶
This section is empty.