Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
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
l
m
n
o
p
r
s
t
u
v
w
x
y
~
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
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
datatype
RawBuffer.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <cstdint>
3
#include <vector>
4
5
#include "
depthai-shared/common/Timestamp.hpp
"
6
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
7
#include "
depthai-shared/utility/Serialization.hpp
"
8
9
namespace
dai
{
10
12
struct
RawBuffer
{
13
virtual
~RawBuffer
() =
default
;
14
std::vector<std::uint8_t>
data
;
15
16
int64_t
sequenceNum
= 0;
17
Timestamp
ts
= {};
18
Timestamp
tsDevice
= {};
19
20
virtual
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const
{
21
metadata =
utility::serialize
(*
this
);
22
datatype =
DatatypeEnum::Buffer
;
23
};
24
25
virtual
DatatypeEnum
getType
()
const
{
26
return
DatatypeEnum::Buffer
;
27
}
28
29
DEPTHAI_SERIALIZE
(
RawBuffer
,
sequenceNum
,
ts
,
tsDevice
);
30
};
31
32
}
// namespace dai
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::DatatypeEnum::Buffer
@ Buffer
dai::RawBuffer::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawBuffer, sequenceNum, ts, tsDevice)
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
DatatypeEnum.hpp
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::Timestamp
Timestamp structure.
Definition:
Timestamp.hpp:12
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
Serialization.hpp
dai::RawBuffer::data
std::vector< std::uint8_t > data
Definition:
RawBuffer.hpp:14
dai::RawBuffer::serialize
virtual void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const
Definition:
RawBuffer.hpp:20
Timestamp.hpp
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::RawBuffer::getType
virtual DatatypeEnum getType() const
Definition:
RawBuffer.hpp:25
dai
Definition:
CameraExposureOffset.hpp:6
dai::RawBuffer::~RawBuffer
virtual ~RawBuffer()=default
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19