F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
18namespace Fw {
19
24
25 // ----------------------------------------------------------------------
26 // Construction
27 // ----------------------------------------------------------------------
28
32 const U8 *const bytes,
33 const U32 size
34 ) :
35 bytes(bytes),
36 size(size)
37 {
38
39 }
40
41 // ----------------------------------------------------------------------
42 // Data
43 // ----------------------------------------------------------------------
44
46 const U8 *const bytes;
47
49 const U32 size;
50
51 };
52
53}
54
55#endif
uint8_t U8
8-bit unsigned integer
Definition BasicTypes.h:26
C++-compatible configuration header for fprime configuration.
Definition Buffer.cpp:21
A variable-length byte array with constant access.
const U8 *const bytes
The bytes.
ConstByteArray(const U8 *const bytes, const U32 size)
const U32 size
The size.