cpp-mate  0.7
Helpful library for C++.
CppMate::BinaryData::Window Class Reference

Represents window within provided BinaryData. More...

#include <BinaryData.hpp>

Inheritance diagram for CppMate::BinaryData::Window:
Collaboration diagram for CppMate::BinaryData::Window:

Public Member Functions

 Window (const BinaryData *data, uint64_t offset, uint64_t size=0)
 Constructor. More...
 
 Window (std::unique_ptr< BinaryData > data, uint64_t offset, uint64_t size=0)
 Constructor. More...
 
 Window (std::shared_ptr< BinaryData > data, uint64_t offset, uint64_t size=0)
 Constructor. More...
 
const uint8_t * getData () const override
 Returns address of data. More...
 
uint64_t getSize () const override
 Returns size of data in bytes. More...
 
- Public Member Functions inherited from CppMate::BinaryData
virtual ~BinaryData ()=default
 
bool hasData () const
 Returns status of a data presence. More...
 
bool operator== (const BinaryData &other) const
 operator == More...
 
bool operator!= (const BinaryData &other) const
 operator != More...
 

Detailed Description

Represents window within provided BinaryData.

Constructor & Destructor Documentation

◆ Window() [1/3]

CppMate::BinaryData::Window::Window ( const BinaryData data,
uint64_t  offset,
uint64_t  size = 0 
)
inline

Constructor.

Parameters
datathe source data.
offsetthe offset within source data.
sizethe size of widnow in source data.
Exceptions
std::invalid_argument

◆ Window() [2/3]

CppMate::BinaryData::Window::Window ( std::unique_ptr< BinaryData data,
uint64_t  offset,
uint64_t  size = 0 
)
inline

Constructor.

Parameters
datathe source data.
offsetthe offset within source data.
sizethe size of widnow in source data.
Exceptions
std::invalid_argument

◆ Window() [3/3]

CppMate::BinaryData::Window::Window ( std::shared_ptr< BinaryData data,
uint64_t  offset,
uint64_t  size = 0 
)
inline

Constructor.

Parameters
datathe source data.
offsetthe offset within source data.
sizethe size of widnow in source data.
Exceptions
std::invalid_argument

Member Function Documentation

◆ getData()

const uint8_t* CppMate::BinaryData::Window::getData ( ) const
inlineoverridevirtual

Returns address of data.

Returns
address of data.

Implements CppMate::BinaryData.

◆ getSize()

uint64_t CppMate::BinaryData::Window::getSize ( ) const
inlineoverridevirtual

Returns size of data in bytes.

Returns
size of data.

Implements CppMate::BinaryData.


The documentation for this class was generated from the following file: