From 544de86739a85792be7e6883968b2af8590d0711 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Aug 2014 14:11:23 +0300 Subject: Add comments for outbound packet fields in debug log. --- src/net/tmwa/messageout.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa/messageout.h') diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h index 57ba9e75b..7aba1677b 100644 --- a/src/net/tmwa/messageout.h +++ b/src/net/tmwa/messageout.h @@ -47,16 +47,21 @@ class MessageOut final : public Net::MessageOut A_DELETE_COPY(MessageOut) - void writeInt16(const int16_t value); /**< Writes a short. */ + /**< Writes a short. */ + void writeInt16(const int16_t value, + const char *const str = nullptr); - void writeInt32(const int32_t value); /**< Writes a long. */ + /**< Writes a long. */ + void writeInt32(const int32_t value, + const char *const str = nullptr); /** * Encodes coordinates and direction in 3 bytes. */ void writeCoordinates(const uint16_t x, const uint16_t y, - unsigned char direction); + unsigned char direction, + const char *const str = nullptr); void resetPos() { mPos = 0; } -- cgit v1.2.3-70-g09d2