Skip to content

Cannot find recommended method (UtMemSet) suggested in comments #963

@asgibson

Description

@asgibson

Describe the bug
UtMemSet is not found in ut-assert, but it suggested to be used in comments from utassert.h and uttools.h

To Reproduce

/* Compares a region of memory to a static pattern and determines if they are equal. Note: Use UtMemSet to
* fill a region of memory with a static pattern. */
#define UtAssert_MemCmpValue(Memory, Value, Length, ...) \
UtAssertEx((UtMemCmpValue(Memory, Value, Length)), UtAssert_GetContext(), __FILE__, __LINE__, __VA_ARGS__)

/* Compares a region of memory to a static pattern and determines if they are equal. Note: Use UtMemSet to
* fill a region of memory with a static pattern. */
bool UtMemCmpValue(const void *Memory, uint8 Value, uint32 Length);

Additional context
Other comments in the same files suggest to use methods that do exist, UtMemFill and UtMem2BinFile.

Reporter Info
Alan Gibson
NASA/GSFC 587

Metadata

Metadata

Assignees

Labels

docsrefactorunit-testTickets related to the OSAL unit testing (functional and/or coverage)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions