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

Function PyFloat_Pack2

asyncpg/protocol/record/pythoncapi_compat.h:487–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485// C API: Python 3.11a2-3.11a6 versions are not supported.
486#if 0x030600B1 <= PY_VERSION_HEX && PY_VERSION_HEX <= 0x030B00A1 && !defined(PYPY_VERSION)
487static inline int PyFloat_Pack2(double x, char *p, int le)
488{ return _PyFloat_Pack2(x, (unsigned char*)p, le); }
489
490static inline double PyFloat_Unpack2(const char *p, int le)
491{ return _PyFloat_Unpack2((const unsigned char *)p, le); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected