aboutsummaryrefslogtreecommitdiff
path: root/libbutl/fdstream.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-27 09:51:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-27 09:51:03 +0200
commit7d7f8a4b8966985da25a5ce72fdddb9e394dca5f (patch)
treeed05ca58e746b8f9f1f068c2d29291b9de97ca43 /libbutl/fdstream.ixx
parent9f90ce8de8865bd111191bf6fd7434ef6d3b75ab (diff)
Add buffer_size constant, blocking() accessor to fdstreambuf
Diffstat (limited to 'libbutl/fdstream.ixx')
-rw-r--r--libbutl/fdstream.ixx2
1 files changed, 2 insertions, 0 deletions
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<char> ifdstream::
read_binary ()
{
+ // @@ TODO: surely there is a more efficient way! See sha256!
+
std::vector<char> v (std::istreambuf_iterator<char> (*this),
std::istreambuf_iterator<char> ());
return v;