Discover Packages
github.com/indexsupply/x
bint
package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: Mar 16, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
big endian, uint64 binary encoding/decoding
Decodes big-endian byte array into a uint64
left-padded zero bytes are ignored.
Disregards extra bytes if len(b) > 8
Encodes a uint64 into a big-endian byte slice
To avoid an allocation, or to have a padded result,
supply an initialized value for b -otherwise use nil.
Panics when provided slice is too small for n.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.