F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FileDownlink.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FileDownlink.hpp
3 // \author bocchino, mstarch
4 // \brief hpp file for FileDownlink component implementation 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 #include <Fw/Com/ComPacket.hpp>
13 #include <Fw/FPrimeBasicTypes.hpp>
14 #include <Fw/Types/Assert.hpp>
15 #include <Fw/Types/StringUtils.hpp>
16 #include <Os/QueueString.hpp>
18 #include <limits>
19 
20 namespace Svc {
21 
22 // ----------------------------------------------------------------------
23 // Construction, initialization, and destruction
24 // ----------------------------------------------------------------------
25 
26 FileDownlink ::FileDownlink(const char* const name)
28  m_configured(false),
29  m_filesSent(this),
30  m_packetsSent(this),
31  m_warnings(this),
32  m_sequenceIndex(0),
33  m_curTimer(0),
34  m_bufferSize(0),
35  m_byteOffset(0),
36  m_endOffset(0),
37  m_lastCompletedType(Fw::FilePacket::T_NONE),
38  m_lastBufferId(0),
39  m_curEntry(),
40  m_cntxId(0) {}
41 
42 void FileDownlink ::configure(U32 cooldown, U32 cycleTime, U32 fileQueueDepth) {
43  this->m_cooldown = cooldown;
44  this->m_cycleTime = cycleTime;
45  this->m_configured = true;
46 
47  Os::Queue::Status stat =
48  m_fileQueue.create(this->getInstance(), Os::QueueString("fileDownlinkQueue"),
49  static_cast<FwSizeType>(fileQueueDepth), static_cast<FwSizeType>(sizeof(struct FileEntry)));
50  FW_ASSERT(stat == Os::Queue::OP_OK, static_cast<FwAssertArgType>(stat));
51 }
52 
54  this->m_fileQueue.teardown();
56 }
57 
59  FW_ASSERT(this->m_configured == true);
60 }
61 
63 
64 // ----------------------------------------------------------------------
65 // Handler implementations for user-defined typed input ports
66 // ----------------------------------------------------------------------
67 
68 void FileDownlink ::Run_handler(const FwIndexType portNum, U32 context) {
69  switch (this->m_mode.get()) {
70  case Mode::IDLE: {
71  FwSizeType real_size = 0;
72  FwQueuePriorityType prio = 0;
73  Os::Queue::Status stat = m_fileQueue.receive(reinterpret_cast<U8*>(&this->m_curEntry),
74  static_cast<FwSizeType>(sizeof(this->m_curEntry)),
75  Os::Queue::BlockingType::NONBLOCKING, real_size, prio);
76 
77  if (stat != Os::Queue::Status::OP_OK || sizeof(this->m_curEntry) != real_size) {
78  return;
79  }
80 
81  sendFile(this->m_curEntry.srcFilename, this->m_curEntry.destFilename, this->m_curEntry.offset,
82  this->m_curEntry.length);
83  break;
84  }
85  case Mode::COOLDOWN: {
86  if (this->m_curTimer >= this->m_cooldown) {
87  this->m_curTimer = 0;
88  this->m_mode.set(Mode::IDLE);
89  } else {
90  this->m_curTimer += m_cycleTime;
91  }
92  break;
93  }
94  case Mode::WAIT: {
95  this->m_curTimer += m_cycleTime;
96  break;
97  }
98  default:
99  break;
100  }
101 }
102 
103 Svc::SendFileResponse FileDownlink ::SendFile_handler(
104  const FwIndexType portNum,
105  const Fw::StringBase& sourceFilename, // lgtm[cpp/large-parameter] dictated by command architecture
106  const Fw::StringBase& destFilename, // lgtm[cpp/large-parameter] dictated by command architecture
107  U32 offset,
108  U32 length) {
109  struct FileEntry entry;
110  entry.offset = offset;
111  entry.length = length;
112  entry.source = FileDownlink::PORT;
113  entry.opCode = 0;
114  entry.cmdSeq = 0;
115  entry.context = m_cntxId++;
116 
117  FW_ASSERT(sourceFilename.length() < entry.srcFilename.getCapacity());
118  FW_ASSERT(destFilename.length() < entry.destFilename.getCapacity());
119  entry.srcFilename = sourceFilename;
120  entry.destFilename = destFilename;
121 
122  Os::Queue::Status status = m_fileQueue.send(reinterpret_cast<U8*>(&entry), static_cast<FwSizeType>(sizeof(entry)),
123  0, Os::Queue::BlockingType::NONBLOCKING);
124 
125  if (status != Os::Queue::Status::OP_OK) {
126  return SendFileResponse(SendFileStatus::STATUS_ERROR, std::numeric_limits<U32>::max());
127  }
128  return SendFileResponse(SendFileStatus::STATUS_OK, entry.context);
129 }
130 
131 void FileDownlink ::pingIn_handler(const FwIndexType portNum, U32 key) {
132  this->pingOut_out(0, key);
133 }
134 
135 void FileDownlink ::bufferReturn_handler(const FwIndexType portNum, Fw::Buffer& fwBuffer) {
136  // If this is a stale buffer (old, timed-out, or both), then ignore its return.
137  // File downlink actions only respond to the return of the most-recently-sent buffer.
138  if (this->m_lastBufferId != fwBuffer.getContext() + 1 || this->m_mode.get() == Mode::IDLE) {
139  return;
140  }
141  // Non-ignored buffers cannot be returned in "DOWNLINK" and "IDLE" state. Only in "WAIT", "CANCEL" state.
142  FW_ASSERT(this->m_mode.get() == Mode::WAIT || this->m_mode.get() == Mode::CANCEL,
143  static_cast<FwAssertArgType>(this->m_mode.get()));
144  // If the last packet has been sent (and is returning now) then finish the file
145  if (this->m_lastCompletedType == Fw::FilePacket::T_END || this->m_lastCompletedType == Fw::FilePacket::T_CANCEL) {
146  finishHelper(this->m_lastCompletedType == Fw::FilePacket::T_CANCEL);
147  return;
148  }
149  // If waiting and a buffer is in-bound, then switch to downlink mode
150  else if (this->m_mode.get() == Mode::WAIT) {
151  this->m_mode.set(Mode::DOWNLINK);
152  }
153 
154  this->downlinkPacket();
155 }
156 
157 // ----------------------------------------------------------------------
158 // Command handler implementations
159 // ----------------------------------------------------------------------
160 
161 void FileDownlink ::SendFile_cmdHandler(const FwOpcodeType opCode,
162  const U32 cmdSeq,
163  const Fw::CmdStringArg& sourceFilename,
164  const Fw::CmdStringArg& destFilename) {
165  struct FileEntry entry;
166  entry.offset = 0;
167  entry.length = 0;
168  entry.source = FileDownlink::COMMAND;
169  entry.opCode = opCode;
170  entry.cmdSeq = cmdSeq;
171  entry.context = std::numeric_limits<U32>::max();
172 
173  FW_ASSERT(sourceFilename.length() < entry.srcFilename.getCapacity());
174  FW_ASSERT(destFilename.length() < entry.destFilename.getCapacity());
175  entry.srcFilename = sourceFilename;
176  entry.destFilename = destFilename;
177 
178  Os::Queue::Status status = m_fileQueue.send(reinterpret_cast<U8*>(&entry), static_cast<FwSizeType>(sizeof(entry)),
179  0, Os::Queue::BlockingType::NONBLOCKING);
180 
181  if (status != Os::Queue::Status::OP_OK) {
182  this->cmdResponse_out(opCode, cmdSeq, Fw::CmdResponse::EXECUTION_ERROR);
183  }
184 }
185 
186 void FileDownlink ::SendPartial_cmdHandler(FwOpcodeType opCode,
187  U32 cmdSeq,
188  const Fw::CmdStringArg& sourceFilename,
189  const Fw::CmdStringArg& destFilename,
190  U32 startOffset,
191  U32 length) {
192  struct FileEntry entry;
193  entry.offset = startOffset;
194  entry.length = length;
195  entry.source = FileDownlink::COMMAND;
196  entry.opCode = opCode;
197  entry.cmdSeq = cmdSeq;
198  entry.context = std::numeric_limits<U32>::max();
199 
200  FW_ASSERT(sourceFilename.length() < entry.srcFilename.getCapacity());
201  FW_ASSERT(destFilename.length() < entry.destFilename.getCapacity());
202  entry.srcFilename = sourceFilename;
203  entry.destFilename = destFilename;
204 
205  Os::Queue::Status status = m_fileQueue.send(reinterpret_cast<U8*>(&entry), static_cast<FwSizeType>(sizeof(entry)),
206  0, Os::Queue::BlockingType::NONBLOCKING);
207 
208  if (status != Os::Queue::Status::OP_OK) {
209  this->cmdResponse_out(opCode, cmdSeq, Fw::CmdResponse::EXECUTION_ERROR);
210  }
211 }
212 
213 void FileDownlink ::Cancel_cmdHandler(const FwOpcodeType opCode, const U32 cmdSeq) {
214  // Must be able to cancel in both downlink and waiting states
215  if (this->m_mode.get() == Mode::DOWNLINK || this->m_mode.get() == Mode::WAIT) {
216  this->m_mode.set(Mode::CANCEL);
217  }
218  this->cmdResponse_out(opCode, cmdSeq, Fw::CmdResponse::OK);
219 }
220 
221 // ----------------------------------------------------------------------
222 // Private helper methods
223 // ----------------------------------------------------------------------
224 
225 Fw::CmdResponse FileDownlink ::statusToCmdResp(SendFileStatus status) {
226  switch (status.e) {
228  return Fw::CmdResponse::OK;
234  return Fw::CmdResponse::BUSY;
235  default:
236  // Trigger assertion if given unknown status
237  FW_ASSERT(false);
238  }
239 
240  // It's impossible to reach this, but added to suppress gcc missing return warning
242 }
243 
244 void FileDownlink ::sendResponse(SendFileStatus resp) {
245  if (this->m_curEntry.source == FileDownlink::COMMAND) {
246  this->cmdResponse_out(this->m_curEntry.opCode, this->m_curEntry.cmdSeq, statusToCmdResp(resp));
247  } else {
248  for (FwIndexType i = 0; i < this->getNum_FileComplete_OutputPorts(); i++) {
250  this->FileComplete_out(i, Svc::SendFileResponse(resp, this->m_curEntry.context));
251  }
252  }
253  }
254 }
255 
256 void FileDownlink ::sendFile(const Fw::FileNameString& sourceFilename,
257  const Fw::FileNameString& destFilename,
258  U32 startOffset,
259  U32 length) {
260  // Open file for downlink
261  Os::File::Status status = this->m_file.open(sourceFilename, destFilename);
262 
263  // Reject command if error when opening file
264  if (status != Os::File::OP_OK) {
265  this->m_mode.set(Mode::IDLE);
266  this->m_warnings.fileOpenError();
268  return;
269  }
270  const U32 fileSize = this->m_file.getSize();
271 
272  if (fileSize == 0) {
273  this->m_mode.set(Mode::IDLE);
274  this->m_warnings.zeroSize();
277  return;
278 
279  } else if (startOffset >= fileSize) {
280  this->enterCooldown();
281  this->log_WARNING_HI_DownlinkPartialFail(this->m_file.getSourceName(), this->m_file.getDestName(), startOffset,
282  fileSize);
285  return;
286  } else if (startOffset + length > fileSize) {
287  // If the amount to downlink is greater than the file size, emit a Warning and then allow
288  // the file to be downlinked anyway
289  this->log_WARNING_LO_DownlinkPartialWarning(startOffset, length, fileSize, this->m_file.getSourceName(),
290  this->m_file.getDestName());
291  length = fileSize - startOffset;
292  }
293 
294  // Send file and switch to WAIT mode
295  this->getBuffer(this->m_buffer, FILE_PACKET);
296  this->sendStartPacket();
297  this->m_mode.set(Mode::WAIT);
298  this->m_sequenceIndex = 1;
299  this->m_curTimer = 0;
300  this->m_byteOffset = startOffset;
301  this->m_lastCompletedType = Fw::FilePacket::T_START;
302 
303  // zero length means read until end of file
304  if (length > 0) {
305  this->log_ACTIVITY_HI_SendStarted(length, this->m_file.getSourceName(), this->m_file.getDestName());
306  this->m_endOffset = startOffset + length;
307  } else {
308  this->log_ACTIVITY_HI_SendStarted(fileSize - startOffset, this->m_file.getSourceName(),
309  this->m_file.getDestName());
310  this->m_endOffset = fileSize;
311  }
312 }
313 
314 Os::File::Status FileDownlink ::sendDataPacket(U32& byteOffset) {
315  FW_ASSERT(byteOffset < this->m_endOffset);
316  const U32 maxDataSize =
318  const U32 dataSize =
319  (byteOffset + maxDataSize > this->m_endOffset) ? (this->m_endOffset - byteOffset) : maxDataSize;
320  U8 buffer[maxDataSize];
321  // This will be last data packet sent
322  if (dataSize + byteOffset == this->m_endOffset) {
323  this->m_lastCompletedType = Fw::FilePacket::T_DATA;
324  }
325 
326  const Os::File::Status status = this->m_file.read(buffer, byteOffset, dataSize);
327  if (status != Os::File::OP_OK) {
328  this->m_warnings.fileRead(status);
329  return status;
330  }
331 
332  Fw::FilePacket::DataPacket dataPacket;
333  dataPacket.initialize(this->m_sequenceIndex, byteOffset, static_cast<U16>(dataSize), buffer);
334  ++this->m_sequenceIndex;
335  Fw::FilePacket filePacket;
336  filePacket.fromDataPacket(dataPacket);
337  this->sendFilePacket(filePacket);
338 
339  byteOffset += dataSize;
340 
341  return Os::File::OP_OK;
342 }
343 
344 void FileDownlink ::sendCancelPacket() {
345  Fw::Buffer buffer;
346  Fw::FilePacket::CancelPacket cancelPacket;
347  cancelPacket.initialize(this->m_sequenceIndex);
348 
349  Fw::FilePacket filePacket;
350  filePacket.fromCancelPacket(cancelPacket);
351  this->getBuffer(buffer, CANCEL_PACKET);
352  FW_ASSERT(buffer.getSize() >= filePacket.bufferSize() + sizeof(FwPacketDescriptorType),
353  static_cast<FwAssertArgType>(buffer.getSize()),
354  static_cast<FwAssertArgType>(filePacket.bufferSize() + sizeof(FwPacketDescriptorType)));
355 
356  // Serialize the packet descriptor FW_PACKET_FILE to the buffer
357  Fw::SerializeStatus status =
358  buffer.getSerializer().serializeFrom(static_cast<FwPacketDescriptorType>(Fw::ComPacketType::FW_PACKET_FILE));
359  FW_ASSERT(status == Fw::FW_SERIALIZE_OK);
360  Fw::Buffer offsetBuffer(buffer.getData() + sizeof(FwPacketDescriptorType),
361  buffer.getSize() - static_cast<Fw::Buffer::SizeType>(sizeof(FwPacketDescriptorType)));
362  // Serialize the filePacket content into the buffer
363  status = filePacket.toBuffer(offsetBuffer);
364  FW_ASSERT(status == Fw::FW_SERIALIZE_OK);
365  this->bufferSendOut_out(0, buffer);
366  this->m_packetsSent.packetSent();
367 }
368 
369 void FileDownlink ::sendEndPacket() {
370  CFDP::Checksum checksum;
371  this->m_file.getChecksum(checksum);
372 
373  Fw::FilePacket::EndPacket endPacket;
374  endPacket.initialize(this->m_sequenceIndex, checksum);
375 
376  Fw::FilePacket filePacket;
377  filePacket.fromEndPacket(endPacket);
378  this->sendFilePacket(filePacket);
379 }
380 
381 void FileDownlink ::sendStartPacket() {
382  Fw::FilePacket::StartPacket startPacket;
383  startPacket.initialize(this->m_file.getSize(), this->m_file.getSourceName().toChar(),
384  this->m_file.getDestName().toChar());
385  Fw::FilePacket filePacket;
386  filePacket.fromStartPacket(startPacket);
387  this->sendFilePacket(filePacket);
388 }
389 
390 void FileDownlink ::sendFilePacket(const Fw::FilePacket& filePacket) {
391  const U32 bufferSize = filePacket.bufferSize() + static_cast<U32>(sizeof(FwPacketDescriptorType));
392  FW_ASSERT(this->m_buffer.getData() != nullptr);
393  FW_ASSERT(this->m_buffer.getSize() >= bufferSize, static_cast<FwAssertArgType>(bufferSize),
394  static_cast<FwAssertArgType>(this->m_buffer.getSize()));
395  // Serialize packet descriptor FW_PACKET_FILE to the buffer
396  Fw::SerializeStatus status = this->m_buffer.getSerializer().serializeFrom(
397  static_cast<FwPacketDescriptorType>(Fw::ComPacketType::FW_PACKET_FILE));
398  FW_ASSERT(status == Fw::FW_SERIALIZE_OK);
399  // Serialize the filePacket content into the buffer, offset by the size of the packet descriptor
400  Fw::Buffer offsetBuffer(
401  this->m_buffer.getData() + sizeof(FwPacketDescriptorType),
402  this->m_buffer.getSize() - static_cast<Fw::Buffer::SizeType>(sizeof(FwPacketDescriptorType)));
403  status = filePacket.toBuffer(offsetBuffer);
404  FW_ASSERT(status == Fw::FW_SERIALIZE_OK);
405  // set the buffer size to the packet size
406  this->m_buffer.setSize(bufferSize);
407  this->bufferSendOut_out(0, this->m_buffer);
408  // restore buffer size to max
410  this->m_packetsSent.packetSent();
411 }
412 
413 void FileDownlink ::enterCooldown() {
414  this->m_file.getOsFile().close();
415  this->m_mode.set(Mode::COOLDOWN);
416  this->m_lastCompletedType = Fw::FilePacket::T_NONE;
417  this->m_curTimer = 0;
418 }
419 
420 void FileDownlink ::downlinkPacket() {
421  FW_ASSERT(this->m_lastCompletedType != Fw::FilePacket::T_NONE,
422  static_cast<FwAssertArgType>(this->m_lastCompletedType));
423  FW_ASSERT(this->m_mode.get() == Mode::CANCEL || this->m_mode.get() == Mode::DOWNLINK,
424  static_cast<FwAssertArgType>(this->m_mode.get()));
425  // If canceled mode and currently downlinking data then send a cancel packet
426  if (this->m_mode.get() == Mode::CANCEL && this->m_lastCompletedType == Fw::FilePacket::T_START) {
427  this->sendCancelPacket();
428  this->m_lastCompletedType = Fw::FilePacket::T_CANCEL;
429  }
430  // If in downlink mode and currently downlinking data then continue with the next packer
431  else if (this->m_mode.get() == Mode::DOWNLINK && this->m_lastCompletedType == Fw::FilePacket::T_START) {
432  // Send the next packet, or fail doing so
433  const Os::File::Status status = this->sendDataPacket(this->m_byteOffset);
434  if (status != Os::File::OP_OK) {
435  this->log_WARNING_HI_SendDataFail(this->m_file.getSourceName(), this->m_byteOffset);
436  this->enterCooldown();
439  // Don't go to wait state
440  return;
441  }
442  }
443  // If in downlink mode or cancel and finished downlinking data then send the last packet
444  else if (this->m_lastCompletedType == Fw::FilePacket::T_DATA) {
445  this->sendEndPacket();
446  this->m_lastCompletedType = Fw::FilePacket::T_END;
447  }
448  this->m_mode.set(Mode::WAIT);
449  this->m_curTimer = 0;
450 }
451 
452 void FileDownlink ::finishHelper(bool cancel) {
453  // Complete command and switch to IDLE
454  if (not cancel) {
455  this->m_filesSent.fileSent();
456  this->log_ACTIVITY_HI_FileSent(this->m_file.getSourceName(), this->m_file.getDestName());
457  } else {
458  this->log_ACTIVITY_HI_DownlinkCanceled(this->m_file.getSourceName(), this->m_file.getDestName());
459  }
460  this->enterCooldown();
461  sendResponse(SendFileStatus::STATUS_OK);
462 }
463 
464 void FileDownlink ::getBuffer(Fw::Buffer& buffer, PacketType type) {
465  // Check type is correct
466  FW_ASSERT(type < COUNT_PACKET_TYPE && type >= 0, static_cast<FwAssertArgType>(type));
467  // Wrap the buffer around our indexed memory.
468  buffer.setData(this->m_memoryStore[type]);
470  // Set a known ID to look for later
471  buffer.setContext(m_lastBufferId);
472  m_lastBufferId++;
473 }
474 } // end namespace Svc
Serialization/Deserialization operation was successful.
void setData(U8 *data)
Definition: Buffer.cpp:68
Status create(FwEnumStoreType id, const Fw::ConstStringBase &name, FwSizeType depth, FwSizeType messageSize) override
create queue storage through delegate
Definition: Queue.cpp:22
U16 FwPacketDescriptorType
The width of packet descriptors when they are serialized by the framework.
void fromCancelPacket(const CancelPacket &cancelPacket)
Definition: FilePacket.cpp:68
FwIdType FwOpcodeType
The type of a command opcode.
Operation succeeded.
Definition: Os.hpp:26
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void fromDataPacket(const DataPacket &dataPacket)
Definition: FilePacket.cpp:58
PlatformSizeType FwSizeType
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
Definition: Queue.cpp:71
void setContext(U32 context)
Definition: Buffer.cpp:82
void setSize(FwSizeType size)
Definition: Buffer.cpp:75
The type of a cancel packet.
Definition: FilePacket.hpp:273
Status
status returned from the queue send function
Definition: Queue.hpp:30
void fromEndPacket(const EndPacket &endPacket)
Definition: FilePacket.cpp:63
The type of a data packet.
Definition: FilePacket.hpp:171
U32 getContext() const
Definition: Buffer.cpp:64
FwEnumStoreType getInstance() const
U8 * getData() const
Definition: Buffer.cpp:56
void fromStartPacket(const StartPacket &startPacket)
Definition: FilePacket.cpp:53
Enum representing a command response.
SerializeStatus toBuffer(Buffer &buffer) const
Definition: FilePacket.cpp:91
SerializeStatus
forward declaration for string
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
Definition: Checksum.hpp:53
U32 bufferSize() const
Definition: FilePacket.cpp:73
void deinit() override
Allows de-initialization on teardown.
The type of a start packet.
Definition: FilePacket.hpp:121
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
Definition: Queue.cpp:54
void teardown() override
teardown the queue
Definition: Queue.cpp:49
Command successfully executed.
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.
Definition: StartPacket.cpp:18
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
FwSizeType getSize() const
Definition: Buffer.cpp:60
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
Command had execution error.
Operation was successful.
Definition: File.hpp:40
PlatformIndexType FwIndexType
FwSizeType SizeType
The size type for a buffer - for backwards compatibility.
Definition: Buffer.hpp:61
Send file response struct.
Command failed validation.
RateGroupDivider component implementation.
virtual SizeType length() const
Get the length of the string.
message sent/received okay
Definition: Queue.hpp:31
A file packet.
Definition: FilePacket.hpp:33
static const U32 FILEDOWNLINK_INTERNAL_BUFFER_SIZE
void initialize(const U32 sequenceIndex, const U32 byteOffset, const U16 dataSize, const U8 *const data)
Initialize a data packet.
Definition: DataPacket.cpp:18
static const bool FILEDOWNLINK_COMMAND_FAILURES_DISABLED
Implementation of malloc based allocator.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
Definition: EndPacket.cpp:20
void initialize(const U32 sequenceIndex)
Initialize a cancel packet.
ExternalSerializeBufferWithMemberCopy getSerializer()
Definition: Buffer.cpp:95
#define FW_ASSERT(...)
Definition: Assert.hpp:14
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
The type of an end packet.
Definition: FilePacket.hpp:230