pyint

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteOrder

type ByteOrder string
const (
	BigEndian    ByteOrder = "big"
	LittleEndian ByteOrder = "little"
)

type PyInt

type PyInt int

func New

func New(i int) PyInt

func (PyInt) AsIntegerRatio

func (pi PyInt) AsIntegerRatio() (int, int)

func (PyInt) BitCount

func (pi PyInt) BitCount() int

func (PyInt) BitLength

func (pi PyInt) BitLength() int

func (PyInt) FromBytes

func (pi PyInt) FromBytes(bytes []byte, byteorder ByteOrder, signed bool) (int64, error)

func (PyInt) Int

func (pi PyInt) Int() int

func (PyInt) IsInteger

func (pi PyInt) IsInteger() bool

func (PyInt) String

func (pi PyInt) String() string

func (PyInt) ToBytes

func (pi PyInt) ToBytes(length int, byteorder ByteOrder, signed bool) ([]byte, error)

Jump to

Keyboard shortcuts

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