#pragma once #include #include #include #include namespace Utils { bool isWhitespaceCharacter(char const c); // Returns nullopt in case the value is missing its terminator character std::optional getValueSurroundedBy(std::string const & src, std::size_t const pos, char const surroundingCharacter); std::string getValueSurroundedByWhitespace(std::string const & src, std::size_t const pos); namespace Bytes { void Write(int const value, std::vector & vec, std::size_t const pos); int Read(std::vector const & vec, std::size_t const pos); } }