PythonMonkey   v0.9.1 (dev)
Loading...
Searching...
No Matches
IntType Struct Reference

This struct represents the 'int' type (arbitrary-precision) in Python. More...

#include <IntType.hh>

Static Public Member Functions

static PyObject * getPyObject (JSContext *cx, JS::BigInt *bigint)
 Construct a new PyObject from a JS::BigInt.
 
static JS::BigInt * toJsBigInt (JSContext *cx, PyObject *pyObject)
 Convert an int object to a JS::BigInt.
 

Detailed Description

This struct represents the 'int' type (arbitrary-precision) in Python.

Member Function Documentation

◆ getPyObject()

PyObject * IntType::getPyObject ( JSContext *  cx,
JS::BigInt *  bigint 
)
static

Construct a new PyObject from a JS::BigInt.

Parameters
cx- javascript context pointer
bigint- JS::BigInt pointer
Returns
PyObject* pointer to the resulting PyObject

◆ toJsBigInt()

JS::BigInt * IntType::toJsBigInt ( JSContext *  cx,
PyObject *  pyObject 
)
static

Convert an int object to a JS::BigInt.

Parameters
cx- javascript context pointer
pyObject- the int object to be converted

The documentation for this struct was generated from the following files: