rosidl_runtime_c  master
Generate the rosidl interfaces in C.
u16string.h
Go to the documentation of this file.
1 // Copyright 2015-2018 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef ROSIDL_RUNTIME_C__U16STRING_H_
16 #define ROSIDL_RUNTIME_C__U16STRING_H_
17 
18 #include <stddef.h>
19 
21 
24 {
26  uint_least16_t * data; // using uint_least16_t to match a C++ std::u16string
28  size_t size;
30  size_t capacity;
32 
34 
35 #endif // ROSIDL_RUNTIME_C__U16STRING_H_
rosidl_runtime_c__U16String::data
uint_least16_t * data
The pointer to the first character, the sequence ends with a null character.
Definition: u16string.h:26
primitives_sequence.h
ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE
#define ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(STRUCT_NAME, TYPE_NAME)
Definition: primitives_sequence.h:22
rosidl_runtime_c__U16String
An array of 16-bit characters terminated by a null character.
Definition: u16string.h:23
rosidl_runtime_c__U16String
struct rosidl_runtime_c__U16String rosidl_runtime_c__U16String
An array of 16-bit characters terminated by a null character.
rosidl_runtime_c__U16String::size
size_t size
The length of the u16string (excluding the null character).
Definition: u16string.h:28
rosidl_runtime_c__U16String::capacity
size_t capacity
The capacity represents the number of allocated characters (including the null character).
Definition: u16string.h:30