ADTF
3.18.4
|
Public API for memory functions. More...
Go to the source code of this file.
Namespaces | |
a_util | |
Serves as the root component, with common functionality documented in core functionality. | |
a_util::memory | |
Serves as component for memory access and management. | |
Functions | |
bool | copy (void *dest, std::size_t dest_size, const void *source, std::size_t bytes_to_copy) |
Portable safe memcopy. More... | |
bool | copy (void *dest, const void *source, std::size_t bytes_to_copy) |
Portable memcopy. More... | |
bool | copy (MemoryBuffer &buffer, const void *source, std::size_t bytes_to_copy) |
Copies a buffer into a MemoryBuffer instance, allocating memory if neccessary. More... | |
bool | set (void *dest, std::size_t dest_size, std::uint8_t value, std::size_t bytes_to_set) |
Portable safe memset. More... | |
bool | set (void *dest, std::uint8_t value, std::size_t bytes_to_set) |
Portable memset. More... | |
bool | set (MemoryBuffer &buffer, std::uint8_t value, std::size_t bytes_to_set) |
memset for a MemoryBuffer instance, allocating memory if neccessary More... | |
bool | zero (void *dest, std::size_t dest_size, std::size_t bytes_to_zero) |
Portable safe memzero. More... | |
bool | zero (void *dest, std::size_t bytes_to_zero) |
Portable memzero. More... | |
bool | zero (MemoryBuffer &buffer, std::size_t bytes_to_zero) |
memzero for a MemoryBuffer instance, allocating memory if neccessary More... | |
int | compare (const void *buf1, std::size_t buf1_size, const void *buf2, std::size_t buf2_size) |
Portable safe memcmp. More... | |
bool | isZero (const void *buffer, std::size_t buffer_size) |
Check whether the given memory range is entirely zero-initialized. More... | |
bool | swapEndianess (bool value) |
Swap the byte order of parameter value . More... | |
std::int8_t | swapEndianess (std::int8_t value) |
Swap the byte order of parameter value . More... | |
std::uint8_t | swapEndianess (std::uint8_t value) |
Swap the byte order of parameter value . More... | |
std::int16_t | swapEndianess (std::int16_t value) |
Swap the byte order of parameter value . More... | |
std::uint16_t | swapEndianess (std::uint16_t value) |
Swap the byte order of parameter value . More... | |
std::int32_t | swapEndianess (std::int32_t value) |
Swap the byte order of parameter value . More... | |
std::uint32_t | swapEndianess (std::uint32_t value) |
Swap the byte order of parameter value . More... | |
std::int64_t | swapEndianess (std::int64_t value) |
Swap the byte order of parameter value . More... | |
std::uint64_t | swapEndianess (std::uint64_t value) |
Swap the byte order of parameter value . More... | |
Public API for memory functions.
Copyright @ 2023 VW Group. All rights reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Definition in file memory/memory.h.