This struct represents the 'int' type (arbitrary-precision) in Python.
More...
#include <IntType.hh>
|
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.
|
|
This struct represents the 'int' type (arbitrary-precision) in Python.
◆ 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: