alloc_raw_data_msg
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Allocates a continuous memory based on the input size to carry the FlowMsg of the raw data type.
Prototype
1 | alloc_raw_data_msg(self, size, align:Optional[int] = 64) -> FlowMsg |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Size of the allocated memory, in bytes. |
align |
Input |
Size of the allocated memory address alignment. Values: [32, 64, 128, 256, 512, 1024]. Default value: 64. |
Returns
The FlowMsg instance is returned in normal scenarios. If the allocation fails, None is returned.
Exception Handling
None
Constraints
None
Parent topic: Class MetaRunContext