Commit 6f3d4da9 authored by Scott Pruett's avatar Scott Pruett Committed by Facebook Github Bot

clarify documentation for IOBuf::length()

Summary:
The documentation on length() is somewhat ambiguous
when dealing with chains of IOBufs -- it is only clear after
reading implementations that "data" refers to "the data in
this single IOBuf, potentially only part of a chain".

Reviewed By: yfeldblum

Differential Revision: D15830189

fbshipit-source-id: d3319abd2d53a76665442d1b93b78a7d1a77dcc0
parent 5947ad63
......@@ -528,7 +528,8 @@ class IOBuf {
}
/**
* Get the data length.
* Get the length of the data for this individual IOBuf in the chain. See
* computeChainDataLength() for the sum of data length for the full chain.
*/
std::size_t length() const {
return length_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment