From e8c58eb78dbd7fc161a82da321dad028a0acbb3d Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 1 Aug 2009 23:06:22 -0700 Subject: Sketches of serialization. --- src/upb_msg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upb_msg.h') 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 *****************************************************************/ -- cgit v1.2.3