OSAPI  0.29
Open System API
common_types_buffer.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Common declarations for a generic buffer type
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_COMMON_TYPES_BUFFER_H_
11 #define OSAPI_COMMON_TYPES_BUFFER_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // Import OSAPI headers
20 #include "general/general_types.h"
21 
22 // Include own headers
23 #include "common/types/common_types_memory.h"
24 
25 // *****************************************************************************************
26 //
27 // Section: Type definitions
28 //
29 // *****************************************************************************************
30 
35 {
38 };
39 
40 typedef struct osapi_buffer_S t_buffer;
41 
42 
43 #endif /* OSAPI_COMMON_TYPES_BUFFER_H_ */
t_size
uint64_t t_size
Definition of OSAPI size type.
Definition: general_types.h:52
osapi_common_memory_S
Definition: common_types_memory.h:31
osapi_buffer_S
Definition: common_types_buffer.h:34
osapi_buffer_S::size
t_size size
Current capacity usage, i.e. how many bytes are you using of the allocated capacity.
Definition: common_types_buffer.h:36
osapi_buffer_S::mem
t_memory mem
Allocated memory.
Definition: common_types_buffer.h:37