Documentation ¶
Index ¶
- Constants
- Variables
- func Fingerprint(slice []byte) []byte
- func GetInt64BE(src []byte) int64
- func GetInt64LE(src []byte) int64
- func GetUint64BE(src []byte) uint64
- func GetUint64LE(src []byte) uint64
- func Int64FromWord256(word Word256) int64
- func IsZeros(slice []byte) bool
- func LeftPadBytes(slice []byte, l int) []byte
- func PutInt64BE(dest []byte, i int64)
- func PutInt64LE(dest []byte, i int64)
- func PutUint64BE(dest []byte, i uint64)
- func PutUint64LE(dest []byte, i uint64)
- func RightPadBytes(slice []byte, l int) []byte
- func SearchUint64s(a []uint64, x uint64) int
- func TrimmedString(b []byte) string
- func Tuple256Split(t Tuple256) (Word256, Word256)
- func Uint64FromWord256(word Word256) uint64
- type Tuple256
- type Tuple256Slice
- type Uint64Slice
- type Word256
Constants ¶
View Source
const Word256Length = 32
Variables ¶
View Source
var ( Zero256 = Word256{0} One256 = Word256{1} )
Functions ¶
func Fingerprint ¶
func GetInt64BE ¶
func GetInt64LE ¶
func GetUint64BE ¶
func GetUint64LE ¶
func Int64FromWord256 ¶
func LeftPadBytes ¶
func PutInt64BE ¶
func PutInt64LE ¶
func PutUint64BE ¶
func PutUint64LE ¶
func RightPadBytes ¶
func SearchUint64s ¶
func TrimmedString ¶
func Tuple256Split ¶
func Uint64FromWord256 ¶
Types ¶
type Tuple256Slice ¶
type Tuple256Slice []Tuple256
func (Tuple256Slice) Len ¶
func (p Tuple256Slice) Len() int
func (Tuple256Slice) Less ¶
func (p Tuple256Slice) Less(i, j int) bool
func (Tuple256Slice) Sort ¶
func (p Tuple256Slice) Sort()
func (Tuple256Slice) Swap ¶
func (p Tuple256Slice) Swap(i, j int)
type Uint64Slice ¶
type Uint64Slice []uint64
func (Uint64Slice) Len ¶
func (p Uint64Slice) Len() int
func (Uint64Slice) Less ¶
func (p Uint64Slice) Less(i, j int) bool
func (Uint64Slice) Search ¶
func (p Uint64Slice) Search(x uint64) int
func (Uint64Slice) Sort ¶
func (p Uint64Slice) Sort()
func (Uint64Slice) Swap ¶
func (p Uint64Slice) Swap(i, j int)
type Word256 ¶
type Word256 [Word256Length]byte
func Int64ToWord256 ¶
func LeftPadWord256 ¶
func RightPadWord256 ¶
func Uint64ToWord256 ¶
func (Word256) TrimmedString ¶
Click to show internal directories.
Click to hide internal directories.