MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyLong_GetNativeLayout

Function PyLong_GetNativeLayout

asyncpg/protocol/record/pythoncapi_compat.h:1794–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792typedef struct PyLongWriter PyLongWriter;
1793
1794static inline const PyLongLayout*
1795PyLong_GetNativeLayout(void)
1796{
1797 static const PyLongLayout PyLong_LAYOUT = {
1798 PyLong_SHIFT,
1799 sizeof(digit),
1800 -1, // least significant first
1801 PY_LITTLE_ENDIAN ? -1 : 1,
1802 };
1803
1804 return &PyLong_LAYOUT;
1805}
1806
1807static inline int
1808PyLong_Export(PyObject *obj, PyLongExport *export_long)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected