binutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNLengthAlphabetString

func GenerateNLengthAlphabetString(n int) string

GenerateNLengthAlphabetString returns random alphabet rune for n length

func GenerateNLengthAlphanumericString

func GenerateNLengthAlphanumericString(n int) string

GenerateNLengthAlphanumericString returns random alphanumeric rune for n length

func GenerateNLengthDigitString

func GenerateNLengthDigitString(n int) string

GenerateNLengthDigitString returns random digit rune for n length

func GenerateNLengthHexString

func GenerateNLengthHexString(n int) string

GenerateNLengthHexString returns random hex rune for n length

func GenerateNLengthRandomBinRuneSlice

func GenerateNLengthRandomBinRuneSlice(n int, max uint) ([]rune, uint)

GenerateNLengthRandomBinRuneSlice returns n-length random binary string max == 0 for no cap limit

func GenerateNLengthZeroPaddingRuneSlice

func GenerateNLengthZeroPaddingRuneSlice(n int) []rune

GenerateNLengthZeroPaddingRuneSlice returns n-length zero padding string

func GenerateRandomInt

func GenerateRandomInt(min, max int) int

GenerateRandomInt return random int value with min-max

func Load

func Load(path string, object interface{}) error

Decode Gob file

func Pack

func Pack(data []interface{}) []byte

Pack the data into (partial) LLRP packet payload.

func Parse6BinRuneSliceToRune

func Parse6BinRuneSliceToRune(r []rune) (rune, error)

Parse6BinRuneSliceToRune translate 6 rune slices into a 6-bit encoded rune

func ParseBinRuneSliceToInt

func ParseBinRuneSliceToInt(bs []rune) int

ParseBinRuneSliceToInt returns int value of the binary string

func ParseBinRuneSliceToUint8Slice

func ParseBinRuneSliceToUint8Slice(bs []rune) ([]uint8, error)

ParseBinRuneSliceToUint8Slice returns uint8 slice from binary string Precondition: len(bs) % 8 == 0

func ParseBinStringToDecArrayString

func ParseBinStringToDecArrayString(s string) (string, error)

ParseBinStringToDecArrayString

func ParseBinStringToHexString

func ParseBinStringToHexString(s string) (string, error)

ParseBinStringToHexString returns Hex string

func ParseByteSliceToBinString

func ParseByteSliceToBinString(bys []byte) string

ParseByteSliceToBinString returns run slice of bytes

func ParseDecimalStringToBinRuneSlice

func ParseDecimalStringToBinRuneSlice(s string) []rune

ParseDecimalStringToBinRuneSlice convert serial to binary rune slice

func ParseHexStringToBinString

func ParseHexStringToBinString(s string) (string, error)

ParseHexStringToBinString converts hex string to binary string

func ParseHexStringToDecArrayString

func ParseHexStringToDecArrayString(s string) (string, error)

ParseHexStringToDecArrayString converts hex string to byte array

func ParseRuneSliceTo6BinRuneSlice

func ParseRuneSliceTo6BinRuneSlice(r []rune) []rune

ParseRuneSliceTo6BinRuneSlice returns 6-bit encoded rune slice

func ParseRuneTo6BinRuneSlice

func ParseRuneTo6BinRuneSlice(r rune) []rune

ParseRuneTo6BinRuneSlice coverts rune into 6-bit encoding rune slice

func Save

func Save(path string, object interface{}) error

Encode via Gob to file

Types

This section is empty.

Jump to

Keyboard shortcuts

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