]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: document the current semantics of bl::append(std::istream) 36623/head
authorRobin Lee <cheeselee@fedoraproject.org>
Thu, 13 Aug 2020 06:42:52 +0000 (14:42 +0800)
committerRobin Lee <cheeselee@fedoraproject.org>
Fri, 14 Aug 2020 06:00:19 +0000 (14:00 +0800)
commit599d0de094dcda705f165144ee107db1334c0ad3
treed14970eb49b2678ffc6e9e90eb7e3fb5031d95b6
parent4fea9a8be383374eb1d40f4a4048c4c1a4bd3373
common: document the current semantics of bl::append(std::istream)

bl::append(std::istream) comes with a surprise implementation. People may think
it would just slurp the indentical binary data from the stream. Document the
trap to let people don't mis-use it.

Signed-off-by: Robin Lee <cheeselee@fedoraproject.org>
src/include/buffer.h