Files
ternfs-XTXMarkets/cpp/core/Bincode.cpp
Francesco Mazzoli 6addbdee6a First version of kernel module
Initial version really by Pawel, but many changes in between.

Big outstanding issues:

* span cache reclamation (unbounded memory otherwise...)
* bad block service detection and workarounds
* corrupted blocks detection and workaround

Co-authored-by: Paweł Dziepak <pawel.dziepak@xtxmarkets.com>
2023-05-18 15:29:41 +00:00

15 lines
353 B
C++

#include "Bincode.hpp"
#include "Common.hpp"
std::ostream& operator<<(std::ostream& out, const BincodeBytesRef& x) {
return goLangBytesFmt(out, x.data(), x.size());
}
std::ostream& operator<<(std::ostream& out, const BincodeBytes& x) {
return out << x.ref();
}
const char* BincodeException::what() const noexcept {
return _msg.c_str();
}