F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
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
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
HashBuffer.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Hash.hpp
3
// \author dinkel
4
// \brief hpp file for Hash class
5
//
6
// \copyright
7
// Copyright 2009-2015, by the California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#ifndef UTILS_HASH_BUFFER_HPP
14
#define UTILS_HASH_BUFFER_HPP
15
16
#include <
FpConfig.hpp
>
17
#include <
Fw/Types/Serializable.hpp
>
18
#include <
Fw/Types/Assert.hpp
>
19
#include <
Utils/Hash/HashConfig.hpp
>
20
21
namespace
Utils
{
22
26
class
HashBuffer
:
public
Fw::SerializeBufferBase
{
27
public
:
28
// ----------------------------------------------------------------------
29
// Construction and destruction
30
// ----------------------------------------------------------------------
31
34
HashBuffer
(
const
U8
*args,
NATIVE_UINT_TYPE
size);
35
HashBuffer
(
const
HashBuffer
& other);
36
HashBuffer
();
37
40
virtual
~HashBuffer
();
41
42
// ----------------------------------------------------------------------
43
// Public instance methods
44
// ----------------------------------------------------------------------
45
48
HashBuffer
&
operator=
(
const
HashBuffer
& other);
49
52
bool
operator==
(
const
HashBuffer
& other)
const
;
53
56
bool
operator!=
(
const
HashBuffer
& other)
const
;
57
60
NATIVE_UINT_TYPE
getBuffCapacity
()
const
;
// !< returns capacity, not current size, of buffer
61
64
U8
*
getBuffAddr
();
65
const
U8
*
getBuffAddr
()
const
;
66
67
private
:
68
// ----------------------------------------------------------------------
69
// Private member variables
70
// ----------------------------------------------------------------------
71
74
U8
m_bufferData[
HASH_DIGEST_LENGTH
];
// packet data buffer
75
};
26
class
HashBuffer
:
public
Fw::SerializeBufferBase
{
…
};
76
}
77
78
#endif
Assert.hpp
U8
uint8_t U8
8-bit unsigned integer
Definition
BasicTypes.h:26
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
HASH_DIGEST_LENGTH
#define HASH_DIGEST_LENGTH
Definition
CRC32.hpp:18
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
HashConfig.hpp
Serializable.hpp
Fw::SerializeBufferBase
Definition
Serializable.hpp:41
Utils::HashBuffer
A container class for holding a hash buffer.
Definition
HashBuffer.hpp:26
Utils::HashBuffer::operator=
HashBuffer & operator=(const HashBuffer &other)
Definition
HashBufferCommon.cpp:22
Utils::HashBuffer::getBuffCapacity
NATIVE_UINT_TYPE getBuffCapacity() const
Definition
HashBufferCommon.cpp:52
Utils::HashBuffer::operator==
bool operator==(const HashBuffer &other) const
Definition
HashBufferCommon.cpp:32
Utils::HashBuffer::HashBuffer
HashBuffer()
Definition
HashBufferCommon.cpp:6
Utils::HashBuffer::getBuffAddr
U8 * getBuffAddr()
Definition
HashBufferCommon.cpp:48
Utils::HashBuffer::operator!=
bool operator!=(const HashBuffer &other) const
Definition
HashBufferCommon.cpp:40
Utils::HashBuffer::~HashBuffer
virtual ~HashBuffer()
Definition
HashBufferCommon.cpp:14
Utils
Definition
CRCChecker.cpp:20
Utils
Hash
HashBuffer.hpp
Generated by
1.10.0