mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Update zero-initialization example
This commit is contained in:
1 parent
afb76b9b50
commit
a781e038bb
1 file changed
+3
-2
@@ -10,8 +10,9 @@ zero-initialized), for performance reasons:
|
||||
uint32_t flags = 0;
|
||||
etc
|
||||
|
||||
// Uncomment this line to take the option.
|
||||
// flags |= WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED;
|
||||
// Setting this flag bit takes the option. Its presence or absence has no
|
||||
// effect if the WUFFS_INITIALIZE__ALREADY_ZEROED flag bit is also set.
|
||||
flags |= WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED;
|
||||
|
||||
wuffs_foo__bar__initialize(etc, flags);
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user