| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Replace PyBytes_FromStringAndSize(NULL, size) with the new public PyBytesWriter API.
|
@picnixz: Please review the updated code. |
Sorry, something went wrong.
|
Wait, does Create overallocate the buffer? because in sha3 and hashopenssl we don't need extra bytes (we just need the exact size that is asked). |
Sorry, something went wrong.
PyBytesWrite_Create(n) allocates exactly n bytes, it doesn't use overallocation. Only PyBytesWriter_Grow() and PyBytesWriter_Resize() use overallocation. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Replace PyBytes_FromStringAndSize(NULL, size) with the new public PyBytesWriter API.