converter

package module
v0.0.0-...-53084a6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 3 Imported by: 4

README

converter

Golang type converter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat32

func BytesToFloat32(b []byte) float32

func BytesToFloat64

func BytesToFloat64(b []byte) float64

func BytesToFloat64s

func BytesToFloat64s(bs []byte) []float64

func BytesToInt16

func BytesToInt16(b []byte) int16

func BytesToInt16s

func BytesToInt16s(bs []byte) []int16

func BytesToUint16

func BytesToUint16(b []byte) uint16

func BytesToUint32

func BytesToUint32(b []byte) uint32

func BytesToUint64

func BytesToUint64(b []byte) uint64

func Float32ToBytes

func Float32ToBytes(f float32) []byte

func Float32sToBytes

func Float32sToBytes(fs []float32) []byte

func Float32sToInt16s

func Float32sToInt16s(fs []float32) []int16

func Float64ToBytes

func Float64ToBytes(f float64) []byte

func Float64sToComplex128s

func Float64sToComplex128s(fs []float64) []complex128

func Float64sToInt16s

func Float64sToInt16s(fs []float64) []int16

func Int16ToUint16

func Int16ToUint16(i int16) uint16

func Int16sToFloat32s

func Int16sToFloat32s(is []int16) []float32

func Int16sToFloat64s

func Int16sToFloat64s(is []int16) []float64

func Int2bytes

func Int2bytes(i int, size int) []byte

Int2bytes converts int to []byte

func Int32ToUint32

func Int32ToUint32(i int32) uint32

func Int64ToUint64

func Int64ToUint64(i int64) uint64

func NormalizeFloat32s

func NormalizeFloat32s(fs []float32) []float32

func NormalizeFloat64s

func NormalizeFloat64s(fs []float64) []float64

func NormalizeInt16s

func NormalizeInt16s(is []int16) []int16

func Uint16ToBytes

func Uint16ToBytes(ui uint16) []byte

func Uint16ToInt16

func Uint16ToInt16(ui uint16) int16

func Uint2bytes

func Uint2bytes(i uint64, size int) []byte

Uint2bytes converts uint64 to []byte

func Uint32ToBytes

func Uint32ToBytes(ui uint32) []byte

func Uint32ToInt32

func Uint32ToInt32(ui uint32) int32

func Uint64ToBytes

func Uint64ToBytes(ui uint64) []byte

func Uint64ToInt64

func Uint64ToInt64(ui uint64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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