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

Function PyBytesWriter_GetData

asyncpg/protocol/record/pythoncapi_compat.h:2364–2373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364static inline void*
2365PyBytesWriter_GetData(PyBytesWriter *writer)
2366{
2367 if (writer->obj == NULL) {
2368 return writer->small_buffer;
2369 }
2370 else {
2371 return PyBytes_AS_STRING(writer->obj);
2372 }
2373}
2374
2375static inline Py_ssize_t
2376PyBytesWriter_GetSize(PyBytesWriter *writer)

Calls

no outgoing calls

Tested by

no test coverage detected