| 2463 | } |
| 2464 | |
| 2465 | static inline int |
| 2466 | PyBytesWriter_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 | |
| 2479 | static inline int |
| 2480 | PyBytesWriter_Grow(PyBytesWriter *writer, Py_ssize_t size) |
nothing calls this directly
no test coverage detected