Home away from home ![Home away from home](https://www.amigans.net/uploads/rank3dbf8eb1a72e7.gif)
Joined: 2006/11/20 16:26 Last Login
: Yesterday 19:45
From Norway
Group:
Registered Users
|
@Cyborg
The API allows the users to define memory type of the destination buffer (uncompressed data), and the program is supposed free memory itself, when the program is done with memory.
I guess I can do it internally, I know what API is calling the function, so I can put “if” in there to handle it, but this can cause confusion, and it be easy to forget, to change memory free function.
I think your correct, it be better to deprecate the function, to properly inform the developers that they should not use it. this will cause developers to look up the autodocs.
I think maybe a callback hook, can be good idea, for memory allocation function, so developer have full control over it. some developers don’t like callback hooks, but it already use it for progress updates, and custum password input dialogs.
Edited by LiveForIt on 2022/7/13 13:42:46
|