summaryrefslogtreecommitdiffstats
path: root/pb_decode.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-08-24 19:35:17 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-08-24 19:35:17 +0300
commitdc2da0edc568b29361479fb7405c96b1a13442cf (patch)
treeeb7a4143f25bb3f90686f6f8f34a2377e86be7f3 /pb_decode.h
parent86257a2a7000875c8ec1e2eef59de258400ac724 (diff)
Change the substream implementation in pb_decode.
This makes it unnecessary to copy back the state, and also relaxes the requirements on callbacks (bytes_left will always be valid). It decreases code size by a few bytes, but may be just slightly slower.
Diffstat (limited to 'pb_decode.h')
-rw-r--r--pb_decode.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/pb_decode.h b/pb_decode.h
index 192326eb..9cc67e8e 100644
--- a/pb_decode.h
+++ b/pb_decode.h
@@ -23,10 +23,6 @@
*
* 3) You can use state to store your own data (e.g. buffer pointer),
* and rely on pb_read to verify that no-body reads past bytes_left.
- *
- * 4) Your callback may be used with substreams, in which case bytes_left
- * is different than from the main stream. Don't use bytes_left to compute
- * any pointers.
*/
struct _pb_istream_t
{