diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-17 08:20:25 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-17 08:20:25 -0700 |
commit | c39fbcf9ba985f18218aa1ca39791dc2287db6b8 (patch) | |
tree | 3ef97edc47fa9a7eed17fc4d99d7f33f50f9311c /include/grpc | |
parent | f294934ec4d3766824349358ba235c11a1cbb47a (diff) | |
parent | 3ddc13b25212ed02b58aebea36d69424efdfbf79 (diff) |
Merge github.com:grpc/grpc into framing_costs
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/slice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc/slice.h b/include/grpc/slice.h index 86a455b42c..d65bde49ee 100644 --- a/include/grpc/slice.h +++ b/include/grpc/slice.h @@ -109,9 +109,9 @@ GPRAPI grpc_slice grpc_slice_from_static_string(const char *source); /* Create a slice pointing to constant memory */ GPRAPI grpc_slice grpc_slice_from_static_buffer(const void *source, size_t len); -/* Return a result slice derived from s, which shares a ref count with s, where - result.data==s.data+begin, and result.length==end-begin. - The ref count of s is increased by one. +/* Return a result slice derived from s, which shares a ref count with \a s, + where result.data==s.data+begin, and result.length==end-begin. The ref count + of \a s is increased by one. Do not assign result back to \a s. Requires s initialized, begin <= end, begin <= s.length, and end <= source->length. */ GPRAPI grpc_slice grpc_slice_sub(grpc_slice s, size_t begin, size_t end); |