47 File(std::shared_ptr<
char[]> dataPtr,
size_t size);
53 explicit File(std::string
const& data);
90 [[nodiscard]]
size_t size() const noexcept;
96 [[nodiscard]] std::
string toString() const;
std::string & filename() noexcept
size_t size() const noexcept
File(std::shared_ptr< char[]> dataPtr, size_t size)
void writeToDisk(std::string const &path) const
std::string toString() const
std::string & contentType() noexcept
Macros for frequently used patterns.
#define NAWA_COMPLEX_DATA_ACCESSORS_DEF(Class, Member, Type)
#define NAWA_DEFAULT_DESTRUCTOR_DEF(Class)
#define NAWA_MOVE_CONSTRUCTOR_DEF(Class)
#define NAWA_COPY_ASSIGNMENT_OPERATOR_DEF(Class)
#define NAWA_PRIVATE_DATA()
#define NAWA_MOVE_ASSIGNMENT_OPERATOR_DEF(Class)
#define NAWA_COPY_CONSTRUCTOR_DEF(Class)