|
libcosmos
Linux C++ System Programming Library
|
#include <cstring>#include <type_traits>Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | cosmos::zero_object (T &obj) |
| Completely overwrites the given object with zeroes. | |
Helper functions for dealing with raw memory.
Definition in file memory.hxx.
| void cosmos::zero_object | ( | T & | obj | ) |
Completely overwrites the given object with zeroes.
This is typically used in C-APIs to get a defined object state.
This is not an optimization-safe function to remove sensitive data from memory.
Definition at line 23 of file memory.hxx.