forked from catid/siamese
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecoderPacketWindow.h
More file actions
49 lines (39 loc) · 1.44 KB
/
Copy pathDecoderPacketWindow.h
File metadata and controls
49 lines (39 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DECODER_PACKET_WINDOW_H
#define DECODER_PACKET_WINDOW_H
#include <vector>
#include "pktalloc.h" // Include pktalloc for Allocator
#include "RecoveryPacketList.h" // Include RecoveryPacketList
#include "RecoveryMatrixState.h" // Include RecoveryMatrixState
#include "SiameseResult.h" // For SiameseResult
#include "DecoderStats.h" // Include DecoderStats
#include "SiameseCommon.h" // Include OriginalPacket
namespace siamese {
class DecoderPacketWindow {
public:
pktalloc::Allocator* TheAllocator = nullptr;
DecoderStats* Stats = nullptr;
CheckedRegionState* CheckedRegion = nullptr;
RecoveryPacketList* RecoveryPackets = nullptr;
RecoveryMatrixState* RecoveryMatrix = nullptr;
unsigned Count = 0;
bool EmergencyDisabled = false;
bool GrowWindow(unsigned windowElementEnd) {
(void)windowElementEnd; // Suppress unused parameter warning
Count = windowElementEnd;
return true;
}
unsigned ColumnToElement(unsigned column) const {
(void)column; // Suppress unused parameter warning
return column;
}
bool InvalidElement(unsigned element) const {
(void)element; // Suppress unused parameter warning
return element >= Count;
}
OriginalPacket* GetWindowElement(unsigned element) {
(void)element; // Suppress unused parameter warning
return nullptr; // Example return value
}
};
} // namespace siamese
#endif // DECODER_PACKET_WINDOW_H