utils

package
v0.0.0-...-2dc90a3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUTF16

func DecodeUTF16(b []byte) (string, error)

func ReadNextBytes

func ReadNextBytes(file io.Reader, number int) []byte

Types

type Float16

type Float16 uint16

func From32

func From32(x float32) Float16

converts a float32 to half-precision float

func From64

func From64(x float64) Float16

converts a float64 to half-precision float

func FromBigEndian

func FromBigEndian(b []byte) Float16

func FromLittleEndian

func FromLittleEndian(b []byte) Float16

func (Float16) BigEndian

func (x Float16) BigEndian() []byte

func (Float16) LittleEndian

func (x Float16) LittleEndian() []byte

func (Float16) PutBigEndian

func (x Float16) PutBigEndian(b []byte)

func (Float16) PutLittleEndian

func (x Float16) PutLittleEndian(b []byte)

func (Float16) String

func (x Float16) String() string

stringer

func (Float16) To32

func (x Float16) To32() float32

converts a half-precision float to float32

func (Float16) To64

func (x Float16) To64() float64

converts a half-precision float to float64

Jump to

Keyboard shortcuts

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