utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToString

func ByteToString(b byte) string

func CompareBytes

func CompareBytes(a, b byte, operator string) bool

func CompareWords

func CompareWords(a, b uint16, operator string) bool

func JoinBytes

func JoinBytes(hob, lob byte) uint16

Joins two bytes together to form a 16 bit integer

func PadRight

func PadRight(s string, maxLen int, padStr string) string

func SplitIntoBytes

func SplitIntoBytes(bb uint16) (byte, byte)

Splits one 16 bit integer to two bytes

func StringToByte

func StringToByte(s string) (byte, error)

func StringToWord

func StringToWord(s string) (uint16, error)

func SwapNibbles

func SwapNibbles(a byte) byte

swaps the nibbles of a byte around

Types

This section is empty.

Jump to

Keyboard shortcuts

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