utils

package
v0.0.0-...-be9965c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

BoolToInt converts a bool to an int.

func BytesToInt

func BytesToInt(b []byte) (int, error)

BytesToInt converts a slice of bytes to an int. Only 8- and 16-bit uints are supported, because those are the only thing the control tables contain.

func High

func High(i int) byte

func IntToBool

func IntToBool(v int) bool

IntToBool converts an int to a bool.

func Low

func Low(i int) byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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