bytevalues

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Overview

Package bytevalues ead and write primitive datatypes from/to byte

Index

Constants

View Source
const (
	BigEndian    = 0
	LittleEndian = 1
)

Byte order: big endian or little endian

Variables

This section is empty.

Functions

func GetFloat32

func GetFloat32(buf []byte, byteOrder int) float32

GetFloat32 Returns float32 read primitive datatypes from/to byte sequences, allowing the byte order to be specified

func GetFloat64

func GetFloat64(buf []byte, byteOrder int) float64

GetFloat64 Returns float64 read primitive datatypes from/to byte sequences, allowing the byte order to be specified

func GetInt32

func GetInt32(buf []byte, byteOrder int) uint32

GetInt32 Returns int32 read primitive datatypes from/to byte sequences, allowing the byte order to be specified

func GetInt64

func GetInt64(buf []byte, byteOrder int) uint64

GetInt64 Returns int64 read primitive datatypes from/to byte sequences, allowing the byte order to be specified

func PutFloat32

func PutFloat32(buf []byte, floatValue float32, byteOrder int)

PutFloat32 write primitive datatypes from/to byte sequences, allowing the byte order to be specified

func PutFloat64

func PutFloat64(buf []byte, floatValue float64, byteOrder int)

PutFloat64 write primitive datatypes from/to byte sequences, allowing the byte order to be specified

func PutInt32

func PutInt32(buf []byte, intValue int32, byteOrder int)

PutInt32 write primitive datatypes from/to byte sequences, allowing the byte order to be specified

func PutInt64

func PutInt64(buf []byte, intValue int64, byteOrder int)

PutInt64 write primitive datatypes from/to byte sequences, allowing the byte order to be specified

Types

This section is empty.

Jump to

Keyboard shortcuts

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