package
1.5.4
Repository: https://github.com/yiuterran/go-common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
FromUint16 Returns two-bytes array with uint16 value in BCD format If value > 9999, function returns value for last two digits of source value (Example: uint8(12345) = []byte{0x23, 0x45}).
FromUint32 Returns four-bytes array with uint32 value in BCD format If value > 99999999, function returns value for last two digits of source value (Example: uint8(1234567890) = []byte{0x23, 0x45, 0x67, 0x89}).
FromUint64 Returns eight-bytes array with uint64 value in BCD format If value > 9999999999999999, function returns value for last two digits of source value (Example: uint8(12233445566778899) = []byte{0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99}).
FromUint8 Returns uint8 value in BCD format.
ToUint16 Return uint16 value converted from at most last two bytes of bcdutil bytes array.
ToUint32 Return uint32 value converted from at most last four bytes of bcdutil bytes array.
ToUint64 Return uint64 value converted from at most last eight bytes of bcdutil bytes array.
ToUint8 Returns uint8 value converted from bcdutil byte.