GCC Code Coverage Report


Directory: lib/fprime-samd/fprime-samd/
File: Drv/Types/ThinBuffer.cpp
Date: 2026-09-26 00:05:09
Exec Total Coverage
Lines: 0 11 0.0%
Functions: 0 7 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // ======================================================================
2 // \title ThinBuffer.cpp
3 // \author tumbar
4 // \brief cpp file for ThinBuffer class
5 // ======================================================================
6
7 #include "fprime-samd/Drv/Types/ThinBuffer.hpp"
8
9 namespace Samd21 {
10 ✗ ThinBuffer::ThinBuffer() : m_data(nullptr), m_size(0), m_context(0) {}
11
12 ✗ ThinBuffer::ThinBuffer(const Fw::Buffer& fwBuffer)
13 ✗ : m_data(fwBuffer.getData()), m_size(fwBuffer.getSize()), m_context(fwBuffer.getContext()) {}
14 ✗ ThinBuffer::ThinBuffer(U8* data, const U32 size) : m_data(data), m_size(size), m_context(0) {}
15 ✗ ThinBuffer::ThinBuffer(U8* data, const U32 size, const U32 context) : m_data(data), m_size(size), m_context(context) {}
16
17 ✗ U8* ThinBuffer ::getData() const {
18 ✗ return this->m_data;
19 }
20
21 ✗ U32 ThinBuffer ::getSize() const {
22 ✗ return this->m_size;
23 }
24
25 ✗ Fw::Buffer ThinBuffer ::getBuffer() const {
26 ✗ return Fw::Buffer(this->m_data, this->m_size, this->m_context);
27 }
28 } // namespace Samd21
29