binaryserialization

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeHash

func DeserializeHash(hashBytes []byte) (*externalapi.DomainHash, error)

DeserializeHash deserializes a slice of bytes to a hash

func DeserializeHashes

func DeserializeHashes(hashesBytes []byte) ([]*externalapi.DomainHash, error)

DeserializeHashes deserializes a slice of bytes to a slice of hashes

func DeserializeUint64

func DeserializeUint64(valueBytes []byte) (uint64, error)

DeserializeUint64 deserializes bytes to uint64

func SerializeHash

func SerializeHash(hash *externalapi.DomainHash) []byte

SerializeHash serializes hash to a slice of bytes

func SerializeHashes

func SerializeHashes(hashes []*externalapi.DomainHash) []byte

SerializeHashes serializes a slice of hashes to a slice of bytes

func SerializeUint64

func SerializeUint64(value uint64) []byte

SerializeUint64 serializes a uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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