convert

package
v0.0.0-...-d436db8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int16ToStream

func Int16ToStream(i int16, byteOrder ByteOrder) []byte

func Int16ToStreamEx

func Int16ToStreamEx(stream []byte, i int16, byteOrder ByteOrder) error

func Int32ToStream

func Int32ToStream(i int32, byteOrder ByteOrder) []byte

func Int32ToStreamEx

func Int32ToStreamEx(stream []byte, i int32, byteOrder ByteOrder) error

func Int64ToStream

func Int64ToStream(i int64, byteOrder ByteOrder) []byte

func Int64ToStreamEx

func Int64ToStreamEx(stream []byte, i int64, byteOrder ByteOrder) error

func StreamToInt16

func StreamToInt16(stream []byte, byteOrder ByteOrder) int16

func StreamToInt32

func StreamToInt32(stream []byte, byteOrder ByteOrder) int32

func StreamToInt64

func StreamToInt64(stream []byte, byteOrder ByteOrder) int64

func StreamToUint16

func StreamToUint16(stream []byte, byteOrder ByteOrder) uint16

func StreamToUint32

func StreamToUint32(stream []byte, byteOrder ByteOrder) uint32

func Uint16ToStreamEx

func Uint16ToStreamEx(stream []byte, u uint16, byteOrder ByteOrder) error

func Uint32ToStream

func Uint32ToStream(u int32, byteOrder ByteOrder) []byte

Types

type ByteOrder

type ByteOrder int
const (
	BigEndian ByteOrder = iota
	LittleEndian
)

Jump to

Keyboard shortcuts

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