Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iostream: use new-style consumer to implement copy()
in 62dd712, we added two concept for both the old-style consumer which returns `std::optional<temporary_buffer>` consumer, and the new one which returns `consumption_result`. but somehow, we are still using the old-style in the implementation of `copy()`. in this change, we switch to the new-style consumer. this helps developers to understand the usage of this consumer, and also enables us to drop the obsolete interface in future. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information