rosidl_runtime_c  master
Generate the rosidl interfaces in C.
string.h
Go to the documentation of this file.
1 // Copyright 2015 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__STRING_H_
16 #define ROSIDL_RUNTIME_C__STRING_H_
17 
18 #include <stddef.h>
19 
21 
24 {
26  char * data;
28  size_t size;
30  size_t capacity;
32 
34 
35 #endif // ROSIDL_RUNTIME_C__STRING_H_
primitives_sequence.h
rosidl_runtime_c__String
An array of 8-bit characters terminated by a null byte.
Definition: string.h:23
rosidl_runtime_c__String::size
size_t size
The length of the string (excluding the null byte).
Definition: string.h:28
rosidl_runtime_c__String
struct rosidl_runtime_c__String rosidl_runtime_c__String
An array of 8-bit characters terminated by a null byte.
ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE
#define ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(STRUCT_NAME, TYPE_NAME)
Definition: primitives_sequence.h:22
rosidl_runtime_c__String::capacity
size_t capacity
The capacity represents the number of allocated bytes (including the null byte).
Definition: string.h:30
rosidl_runtime_c__String::data
char * data
The pointer to the first character, the sequence ends with a null byte.
Definition: string.h:26