// Serialization routines use this struct to return a pointer and a length
struct ser_ret {
- size_t len;
- unsigned char *ser;
+ size_t len; // length of allocation
+ unsigned char *ser; // pointer to allocation
+ unsigned char *msgstart; // pointer to the "M" (message text) field
};
struct ser_ret CtdlSerializeMessage(struct CtdlMessage *);
int do_repl_check, struct CtdlMessage *supplied_msg, int suppress_refcount_adj
);
int CtdlSaveMsgPointerInRoom(char *roomname, long msgid, int do_repl_check, struct CtdlMessage *msg);
-long CtdlSaveThisMessage(struct CtdlMessage *msg, long msgid, int Reply);
char *CtdlReadMessageBody(char *terminator, long tlen, size_t maxlen, StrBuf *exist, int crlf);
StrBuf *CtdlReadMessageBodyBuf(
char *terminator, // token signalling EOT