OSAPI  0.29
Open System API
string_types_wide.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: String module declarations for wide C String types
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_STRING_TYPES_WIDE_H_
11 #define OSAPI_STRING_TYPES_WIDE_H_
12 
13 // Make sure that header is easily imported from c++
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 // *****************************************************************************************
19 //
20 // Section: Import headers
21 //
22 // *****************************************************************************************
23 
24 // Force baseline before system headers
25 #include "general/general_baseline.h"
26 
27 // System headers
28 #include <stdint.h>
29 
30 
39 
40 // *****************************************************************************************
41 //
42 // Section: Type declarations
43 //
44 // *****************************************************************************************
45 
48 {
49  uint64_t tsize;
50  uint64_t csize;
51  wchar_t * ps_location;
52 };
53 
56 
58 #define OSAPI_WIDE_STRING_NULL_POINTER (( t_wString *) 0)
59 
61 #define OSAPI_WIDE_CHAR_NULL_POINTER (( wchar_t *) 0)
62 
63 
66 
67 // End of header with C++ declaration
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 
73 #endif /* OSAPI_STRING_TYPES_WIDE_H_ */
osapi_wide_string::tsize
uint64_t tsize
Total size of the allocated string memory.
Definition: string_types_wide.h:49
osapi_wide_string::csize
uint64_t csize
Current used size.
Definition: string_types_wide.h:50
osapi_wide_string::ps_location
wchar_t * ps_location
Pointer to String location.
Definition: string_types_wide.h:51
osapi_wide_string
The OSAPI C String structure for wide characters.
Definition: string_types_wide.h:47