Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
g
i
j
l
m
n
p
q
r
s
t
u
v
x
y
z
Enumerations
Enumerator
a
b
c
e
f
g
j
l
m
o
p
r
s
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
d
f
i
l
m
n
o
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
a
c
d
g
j
m
p
r
s
t
v
Enumerator
Macros
_
a
b
d
e
f
h
i
j
k
m
o
p
q
r
s
v
Examples
include
pinocchio
serialization
static-buffer.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2021 INRIA
3
//
4
5
#ifndef __pinocchio_serialization_static_buffer_hpp__
6
#define __pinocchio_serialization_static_buffer_hpp__
7
8
#include <vector>
9
10
namespace
pinocchio
11
{
12
namespace
serialization
13
{
14
16
struct
StaticBuffer
17
{
18
20
explicit
StaticBuffer
(
const
size_t
n
)
21
:
m_size
(
n
)
22
{
23
m_data
.reserve(
n
);
24
}
25
27
size_t
size
()
const
28
{
29
return
m_size
;
30
}
31
33
char
*
data
()
34
{
35
return
m_data
.data();
36
}
37
39
const
char
*
data
()
const
40
{
41
return
m_data
.data();
42
}
43
48
void
resize
(
const
size_t
new_size)
49
{
50
m_size
= new_size;
51
m_data
.reserve(new_size);
52
}
53
54
protected
:
55
size_t
m_size
;
56
std::vector<char>
m_data
;
57
};
58
59
}
// namespace serialization
60
}
// namespace pinocchio
61
62
#endif // ifndef __pinocchio_serialization_static_buffer_hpp__
pinocchio::serialization::StaticBuffer
Static buffer with pre-allocated memory.
Definition:
static-buffer.hpp:16
pinocchio::serialization::StaticBuffer::size
size_t size() const
Returns the current size of the buffer.
Definition:
static-buffer.hpp:27
pinocchio::serialization::StaticBuffer::m_data
std::vector< char > m_data
Definition:
static-buffer.hpp:56
pinocchio::serialization::StaticBuffer::m_size
size_t m_size
Definition:
static-buffer.hpp:55
pinocchio::serialization::StaticBuffer::StaticBuffer
StaticBuffer(const size_t n)
 
Definition:
static-buffer.hpp:20
pinocchio::serialization::StaticBuffer::data
const char * data() const
Returns the pointer on the data (const version)
Definition:
static-buffer.hpp:39
serialization
Definition:
serialization.py:1
pinocchio::serialization::StaticBuffer::resize
void resize(const size_t new_size)
Increase the capacity of the vector to a value that's greater or equal to new_size.
Definition:
static-buffer.hpp:48
n
Vec3f n
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:33
pinocchio::serialization::StaticBuffer::data
char * data()
Returns the pointer on the data.
Definition:
static-buffer.hpp:33
pinocchio
Author(s):
autogenerated on Sat Apr 19 2025 02:41:37