Documentation
¶
Index ¶
- func ByteToBitString(b byte) string
- func ComposeByte(pos0 bool, pos1 bool, pos2 bool, pos3 bool, pos4 bool, pos5 bool, pos6 bool, ...) byte
- func GetBoolBitValue(b byte, position int) bool
- func ParseBoolToInt(b bool) int
- func SetBit(n byte, pos uint, value bool) byte
- func SignedIntToBytes(input int) (byte, byte)
- func UnsignedIntToBytes(input int) (byte, byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteToBitString ¶
ByteToBitString converts a bye to a bit string
func ComposeByte ¶
func ComposeByte(pos0 bool, pos1 bool, pos2 bool, pos3 bool, pos4 bool, pos5 bool, pos6 bool, pos7 bool) byte
ComposeByte sets a collection of bools as bits in a byte
func GetBoolBitValue ¶
GetBoolBitValue will return a boolean from the specified bosition in a byte
func ParseBoolToInt ¶
ParseBoolToInt parses a boolean to an integer (true=1, false=0)
func SignedIntToBytes ¶
SignedIntToBytes converts a signed integer to a pair of bytes
func UnsignedIntToBytes ¶
UnsignedIntToBytes converts an unsigned integer to a pair of bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.