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 }}
Contains the text compression and encoding framework.
Definition: namespaces.hpp:11
bool operator==(const Array< N, T > &lhs, const Array< N, T > &rhs)
Definition: HashArray.hpp:35
std::ostream & operator<<(std::ostream &o, const Point &a)