Make buffers_adapter meet requirements

fix #386
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:17 -07:00
parent 7c47668cbb
commit 2b18193f7d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -112,6 +112,13 @@ public:
{
return in_size_;
}
/// Returns the maximum sum of the sizes of the input sequence and output sequence the buffer can hold without requiring reallocation.
std::size_t
capacity() const
{
return max_size_;
}
/** Get a list of buffers that represents the output sequence, with the given size.