17 const size_t PAGE = 8192;
20 std::vector<uint8_t> result;
26 result.insert(result.end(), buffer, buffer + size);
27 }
while (size ==
countof(buffer));
35 return std::string(bytes.begin(), bytes.end());
41 std::vector<std::string> result;
46 if ((ch ==
'\r') || (ch ==
'\n'))
50 result.push_back(temp);
std::vector< std::string > ReadAllLines()
Read all text lines.
std::vector< uint8_t > ReadAllBytes()
Read all bytes.
std::string ReadAllText()
Read all text.
virtual size_t Read(void *buffer, size_t size)=0
Read a bytes buffer base method.
Static array countof definition.
C++ Common project definitions.
constexpr size_t countof(const T(&)[N]) noexcept
Count of elements in static array.
Reader interface definition.