bigint

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt

type BigInt struct {
	// contains filtered or unexported fields
}

func Zero

func Zero() *BigInt

func (*BigInt) Abs

func (bi *BigInt) Abs(a BigInt)

func (*BigInt) Add

func (bi *BigInt) Add(a BigInt, b BigInt)

@todo calc pointer param

func (*BigInt) BI

func (bi *BigInt) BI() big.Int

func (*BigInt) Cmp

func (bi *BigInt) Cmp(a BigInt) int

func (*BigInt) Convert

func (bi *BigInt) Convert(i *big.Int) error

func (*BigInt) CreateFromString

func (bi *BigInt) CreateFromString(s string, base int) error

func (*BigInt) Div

func (bi *BigInt) Div(a BigInt, b BigInt)

func (*BigInt) Int

func (bi *BigInt) Int() *big.Int

func (BigInt) MarshalBinary

func (bi BigInt) MarshalBinary() (data []byte, err error)

func (BigInt) MarshalJSON

func (bi BigInt) MarshalJSON() ([]byte, error)

@todo xml protobuf ...

func (*BigInt) Mul

func (bi *BigInt) Mul(a BigInt, b BigInt)

func (*BigInt) Pow

func (bi *BigInt) Pow(a BigInt, b BigInt) error

func (*BigInt) Scan

func (bi *BigInt) Scan(src interface{}) error

func (*BigInt) SetInt64

func (bi *BigInt) SetInt64(i int64) *BigInt

func (*BigInt) SetUint64

func (bi *BigInt) SetUint64(i uint64) *BigInt

func (BigInt) String

func (bi BigInt) String() string

func (*BigInt) Sub

func (bi *BigInt) Sub(a BigInt, b BigInt)

func (*BigInt) UnmarshalBinary

func (bi *BigInt) UnmarshalBinary(data []byte) error

func (*BigInt) UnmarshalJSON

func (bi *BigInt) UnmarshalJSON(src []byte) error

func (BigInt) Value

func (bi BigInt) Value() (driver.Value, error)

type Slice

type Slice []*BigInt

func (Slice) Len

func (s Slice) Len() int

func (Slice) Less

func (s Slice) Less(i, j int) bool

func (Slice) Swap

func (s Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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