Disk ARchive  2.7.14
Full featured and portable backup and archiving tool
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
libdar::compress_block_header Struct Reference

block header structure used for storing compressed blocks More...

#include <compress_block_header.hpp>

+ Collaboration diagram for libdar::compress_block_header:

Public Member Functions

void dump (generic_file &f)
 
bool set_from (generic_file &f)
 read the block header from a generic_file (an archive) More...
 

Public Attributes

char type
 let the possibility to extend this architecture (for now type is fixed)
 
infinint size
 size of the following compressed block of data
 

Static Public Attributes

static constexpr const char H_DATA = 1
 
static constexpr const char H_EOF = 2
 

Detailed Description

block header structure used for storing compressed blocks

Definition at line 42 of file compress_block_header.hpp.

Member Function Documentation

◆ set_from()

bool libdar::compress_block_header::set_from ( generic_file f)

read the block header from a generic_file (an archive)

Returns
true of a whole block header could be read. False is returned only if no data could be read at all (eof) else an exception is thrown

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