mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-30 23:39:46 -06:00
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>
15 lines
353 B
C++
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();
|
|
}
|