binaryserialization

package
v0.12.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: ISC Imports: 3 Imported by: 4

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 added in v0.10.0

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

DeserializeHashes deserializes a slice of bytes to a slice of hashes

func DeserializeUint64 added in v0.10.0

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 added in v0.10.0

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

SerializeHashes serializes a slice of hashes to a slice of bytes

func SerializeUint64 added in v0.10.0

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