Add a const getter for block message data
@@ -321,6 +321,17 @@ namespace yojimbo
return m_blockData;
}
+ /**
+ Get a constant pointer to the block data.
+
+ @returns A constant pointer to the block data. NULL if no block is attached.
+ */
+
+ const uint8_t * GetBlockData() const
+ {
+ return m_blockData;
+ }
+
/**
Get the size of the block attached to this message.
