tudocomp
– The TU Dortmund Compression Framework
TypedBlock.hpp
Go to the documentation of this file.
1
#pragma once
2
3
//#include <tudocomp/compressors/esp/>
4
5
namespace
tdc
{
namespace
esp {
6
// TODO: Better memory layout
7
struct
TypedBlock
{
8
uint8_t
len
;
9
uint8_t
type
;
10
};
11
bool
operator==
(
const
TypedBlock
& a,
const
TypedBlock
& b) {
12
return
a.
len
== b.
len
&& a.
type
== b.
type
;
13
}
14
std::ostream&
operator<<
(std::ostream& o,
const
TypedBlock
& b) {
15
return
o <<
"{ len: "
<< int(b.
len
) <<
", type: "
<< int(b.
type
) <<
" }"
;
16
}
17
}}
tdc
Contains the text compression and encoding framework.
Definition:
namespaces.hpp:11
tdc::esp::TypedBlock
Definition:
TypedBlock.hpp:7
tdc::esp::TypedBlock::len
uint8_t len
Definition:
TypedBlock.hpp:8
tdc::esp::operator==
bool operator==(const Array< N, T > &lhs, const Array< N, T > &rhs)
Definition:
HashArray.hpp:35
tdc::esp::operator<<
std::ostream & operator<<(std::ostream &o, const Point &a)
Definition:
MonotoneSubsequences.hpp:36
tdc::esp::TypedBlock::type
uint8_t type
Definition:
TypedBlock.hpp:9
include
tudocomp
compressors
esp
TypedBlock.hpp
Generated by
1.8.13