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

Function PyBytesWriter_Resize

asyncpg/protocol/record/pythoncapi_compat.h:2465–2477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2463}
2464
2465static inline int
2466PyBytesWriter_Resize(PyBytesWriter *writer, Py_ssize_t size)
2467{
2468 if (size < 0) {
2469 PyErr_SetString(PyExc_ValueError, "size must be >= 0");
2470 return -1;
2471 }
2472 if (_PyBytesWriter_Resize_impl(writer, size, 1) < 0) {
2473 return -1;
2474 }
2475 writer->size = size;
2476 return 0;
2477}
2478
2479static inline int
2480PyBytesWriter_Grow(PyBytesWriter *writer, Py_ssize_t size)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected