diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-01 23:06:22 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-01 23:06:22 -0700 |
commit | e8c58eb78dbd7fc161a82da321dad028a0acbb3d (patch) | |
tree | b7c1a8b0b0d76ab2236dc7eb961f1af5095b10ef /src/upb_msg.h | |
parent | a952e42e996fcab8f13e48d0078c0e95a4d507d9 (diff) |
Sketches of serialization.
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r-- | src/upb_msg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h index 8699fbf..043af23 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -398,10 +398,10 @@ void upb_msg_serialize_init(struct upb_msg_serialize_state *s, void *data, * UPB_STATUS_OK if serialization is complete, or UPB_STATUS_NEED_MORE_DATA * if there is more data from the message left to be serialized. * - * The number of bytes written to buf is returned in *read. This will be + * The number of bytes written to buf is returned in *written. This will be * equal to len unless we finished serializing. */ upb_status_t upb_msg_serialize(struct upb_msg_serialize_state *s, - void *buf, size_t len, size_t *read); + void *buf, size_t len, size_t *written); /* Text dump *****************************************************************/ |