add file interface

This commit is contained in:
2025-02-26 00:01:51 +01:00
parent 132c3c3c8d
commit a2eb10ec6d
3 changed files with 75 additions and 0 deletions

View File

@@ -74,6 +74,9 @@ void IOStream<IOTag, MessageDispatcher, MessageFactory>::RecieveMessages() {
throw std::runtime_error("VarInt is too big");
}
// nothing to read
if (lenghtValue == 0)
return;
DataBuffer buffer;
buffer = m_Interface.Read(lenghtValue);