From 7d7f8a4b8966985da25a5ce72fdddb9e394dca5f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Oct 2022 09:51:03 +0200 Subject: Add buffer_size constant, blocking() accessor to fdstreambuf --- libbutl/fdstream.ixx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbutl/fdstream.ixx') diff --git a/libbutl/fdstream.ixx b/libbutl/fdstream.ixx index 08e317c..e024af9 100644 --- a/libbutl/fdstream.ixx +++ b/libbutl/fdstream.ixx @@ -167,6 +167,8 @@ namespace butl inline std::vector ifdstream:: read_binary () { + // @@ TODO: surely there is a more efficient way! See sha256! + std::vector v (std::istreambuf_iterator (*this), std::istreambuf_iterator ()); return v; -- cgit v1.1