conv

package
v1.0.0-beta.40 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToInt

func Int64ToInt(value int64) (int, error)

Int64ToInt will convert an int64 to an int, with range checks

func Int64ToUint32

func Int64ToUint32(value int64) (uint32, error)

Int64ToUint32 will convert an int64 to a uint32, with range checks

func Int64ToUint64

func Int64ToUint64(value int64) (uint64, error)

Int64ToUint64 will convert an int64 to a uint64, with range checks

func IntToUint32

func IntToUint32(value int) (uint32, error)

IntToUint32 will convert an int to a uint32, with range checks

func IntToUint64

func IntToUint64(value int) (uint64, error)

IntToUint64 will convert an int to a uint64, with range checks

func Uint32ToInt64

func Uint32ToInt64(value uint32) int64

Uint32ToInt64 will convert a uint32 to an int64 (safe as uint32 fits into int64)

func Uint64ToInt

func Uint64ToInt(value uint64) (int, error)

Uint64ToInt will convert a uint64 to an int, with range checks

func Uint64ToInt64

func Uint64ToInt64(value uint64) (int64, error)

Uint64ToInt64 will convert a uint64 to an int64, with range checks

func Uint64ToUint32

func Uint64ToUint32(value uint64) (uint32, error)

Uint64ToUint32 will convert a uint64 to an uint32, with range checks

func VarIntToInt

func VarIntToInt(varInt *sdk.VarInt) (int, error)

VarIntToInt will convert a VarInt to an int, with range checks

Types

This section is empty.

Jump to

Keyboard shortcuts

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