primitive

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBigInt added in v0.2.1

func MarshalBigInt(value *big.Int) encoding.BinaryMarshaler

func MarshalBitString added in v0.2.1

func MarshalBitString(bits []bool) encoding.BinaryMarshaler

func MarshalInt added in v0.2.1

func MarshalInt[Int signedInt](value Int) encoding.BinaryMarshaler

func UnmarshalBigInt added in v0.2.1

func UnmarshalBigInt(value *big.Int) encoding.BinaryUnmarshaler

func UnmarshalBitString added in v0.2.1

func UnmarshalBitString(bits *[]bool) encoding.BinaryUnmarshaler

func UnmarshalInt added in v0.2.1

func UnmarshalInt[Int signedInt](value *Int) encoding.BinaryUnmarshaler

Types

type BitString

type BitString []bool

func (BitString) String

func (bits BitString) String() string

type Marshaler added in v0.2.3

type Marshaler func() ([]byte, error)

func MarshalBool added in v0.2.1

func MarshalBool(value bool) Marshaler

func (Marshaler) MarshalBinary added in v0.2.3

func (m Marshaler) MarshalBinary() ([]byte, error)

type Unmarshaler added in v0.2.1

type Unmarshaler func([]byte) error

func UnmarshalBool added in v0.2.1

func UnmarshalBool(value *bool) Unmarshaler

func (Unmarshaler) UnmarshalBinary added in v0.2.1

func (u Unmarshaler) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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