TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
tsMemoryUtils.h File Reference

Utility routines for memory operations. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Macros

#define TS_ZERO(var)   ts::Zero(&(var), sizeof(var))
 Zeroing an plain memory variable. More...
 

Functions

bool ts::IdenticalBytes (const void *area, size_t area_size)
 Check if a memory area contains all identical byte values. More...
 
const void * ts::LocatePattern (const void *area, size_t area_size, const void *pattern, size_t pattern_size)
 Locate a pattern into a memory area. More...
 
bool ts::StartsWith (const void *area, size_t area_size, const void *prefix, size_t prefix_size)
 Check if a memory area starts with the specified prefix. More...
 
void ts::Zero (void *addr, size_t size)
 Zeroing a memory area. More...
 

Detailed Description

Utility routines for memory operations.

Macro Definition Documentation

◆ TS_ZERO

#define TS_ZERO (   var)    ts::Zero(&(var), sizeof(var))

Zeroing an plain memory variable.

Do not use with instances of C++ classes.

Parameters
[out]varName of a variable.