F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
ConstByteArray.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title ConstByteArray.hpp
3
// \author bocchino
4
// \brief hpp file for ConstByteArray type
5
//
6
// \copyright
7
// Copyright (C) 2016 California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#ifndef Fw_ConstByteArray_HPP
14
#define Fw_ConstByteArray_HPP
15
16
#include <
FpConfig.hpp
>
17
18
namespace
Fw
{
19
23
struct
ConstByteArray
{
24
// ----------------------------------------------------------------------
25
// Construction
26
// ----------------------------------------------------------------------
27
30
ConstByteArray
(
const
U8
*
const
bytes
,
31
const
U32
size
32
)
33
:
bytes
(
bytes
),
size
(
size
) {}
34
35
// ----------------------------------------------------------------------
36
// Data
37
// ----------------------------------------------------------------------
38
40
const
U8
*
const
bytes
;
41
43
const
U32
size
;
44
};
45
46
}
// namespace Fw
47
48
#endif
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:30
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Fw
Definition:
FppConstantsAc.hpp:121
Fw::ConstByteArray
A variable-length byte array with constant access.
Definition:
ConstByteArray.hpp:23
Fw::ConstByteArray::bytes
const U8 *const bytes
The bytes.
Definition:
ConstByteArray.hpp:40
Fw::ConstByteArray::ConstByteArray
ConstByteArray(const U8 *const bytes, const U32 size)
Definition:
ConstByteArray.hpp:30
Fw::ConstByteArray::size
const U32 size
The size.
Definition:
ConstByteArray.hpp:43
Fw
Types
ConstByteArray.hpp
Generated by
1.9.1