File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,13 @@ jobs:
1717 dialect : [C++17, C++20]
1818 config : [debug, release]
1919 machine :
20- - host : linux
21- os : ubuntu-latest
20+ - os : ubuntu-latest
2221 action : gmake2
2322 toolset : gcc
24- - host : linux
25- os : ubuntu-latest
23+ - os : ubuntu-latest
2624 action : gmake2
2725 toolset : clang
28- - host : windows
29- os : windows-latest
26+ - os : windows-latest
3027 action : vs2019
3128 toolset : msc
3229 runs-on : ${{ matrix.machine.os }}
Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ namespace bitstream
7272 other.m_WordIndex = 0 ;
7373 }
7474
75+ /* *
76+ * @brief Returns the buffer that this reader is currently serializing from
77+ * @return The buffer
78+ */
79+ const uint8_t * get_buffer () const noexcept { return reinterpret_cast <const uint8_t *>(m_Buffer); }
80+
7581 /* *
7682 * @brief Returns the number of bits which have been read from the buffer
7783 * @return The number of bits which have been read
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ namespace bitstream
6666 other.m_WordIndex = 0 ;
6767 }
6868
69+ /* *
70+ * @brief Returns the buffer that this writer is currently serializing into
71+ * @return The buffer
72+ */
73+ uint8_t * get_buffer () const noexcept { return reinterpret_cast <uint8_t *>(m_Buffer); }
74+
6975 /* *
7076 * @brief Returns the number of bits which have been written to the buffer
7177 * @return The number of bits which have been written
You can’t perform that action at this time.
0 commit comments