Skip to content

Commit 62b879b

Browse files
committed
Add more doc comments to various classe
1 parent 20c6d58 commit 62b879b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

include/bitstream/stream/bit_reader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
{

include/bitstream/stream/bit_writer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
{

include/bitstream/stream/byte_buffer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
namespace 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

include/bitstream/utility/endian.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)