AllocRawDataMsg
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Allocates a continuous memory block based on the input size to carry the raw data.
Prototype
1 | FlowMsgPtr AllocRawDataMsg(size_t size, uint32_t align = 512U) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Size of the allocated memory. |
align |
Input |
Alignment size for the allocated memory address. The value range is [32, 64, 128, 256, 512, 1024]. This parameter is reserved and its value is not verified. |
Returns
Pointer to the allocated FlowMsg.
Exception Handling
NULL is returned if the FlowMsg allocation fails.
Constraints
None
Parent topic: FlowBufferFactory Data Type