Convert tabs to 4 spaces, use 4 spaces in code and XML
Fix off-by-one bug for messages that are exactly as big as the buffer
Expose CRC_SIZE to clients so it can be used for buffer sizing