File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ namespace bitstream
1515{
1616 /* *
1717 * @brief A stream for reading objects from a tightly packed buffer
18+ * @note Does not take ownership of the buffer
1819 */
1920 class bit_reader
2021 {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ namespace bitstream
1717
1818 /* *
1919 * @brief A stream for writing objects tightly into a buffer
20+ * @note Does not take ownership of the buffer
2021 */
2122 class bit_writer
2223 {
Original file line number Diff line number Diff line change 55namespace bitstream
66{
77 /* *
8- * @brief A byte buffer aligned to 4 bytes
9- * @note Can be used with bit_reader and bit_writer
8+ * @brief A byte buffer aligned to 4 bytes.
9+ * Can be used with bit_reader and bit_writer.
10+ * @note Size must be a multiple of 4
1011 */
1112 template <size_t Size>
1213 struct byte_buffer
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ namespace bitstream::utility
7272#elif defined(__linux__)
7373 return __builtin_bswap32 (value);
7474#else
75- const uint32_t first = (value << 24 ) & 0xFF000000 ;
75+ const uint32_t first = (value << 24 ) & 0xFF000000 ;
7676 const uint32_t second = (value << 8 ) & 0x00FF0000 ;
77- const uint32_t third = (value >> 8 ) & 0x0000FF00 ;
77+ const uint32_t third = (value >> 8 ) & 0x0000FF00 ;
7878 const uint32_t fourth = (value >> 24 ) & 0x000000FF ;
7979
8080 return first | second | third | fourth;
You can’t perform that action at this time.
0 commit comments