mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add wuffs_aux::DecodeImage
This commit is contained in:
1 parent
ccee207661
commit
04f8686989
9 files changed
+1044
-319
No files matched your search
@@ -27,6 +27,13 @@ namespace wuffs_aux {
|
||||
|
||||
using IOBuffer = wuffs_base__io_buffer;
|
||||
|
||||
// MemOwner represents ownership of some memory. Dynamically allocated memory
|
||||
// (e.g. from malloc or new) is typically paired with free or delete, invoked
|
||||
// when the std::unique_ptr is destroyed. Statically allocated memory might use
|
||||
// MemOwner(nullptr, &free), even if that statically allocated memory is not
|
||||
// nullptr, since calling free(nullptr) is a no-op.
|
||||
using MemOwner = std::unique_ptr<void, decltype(&free)>;
|
||||
|
||||
namespace sync_io {
|
||||
|
||||
// --------
|
||||
|
||||
Reference in new issue
Block a user