Skip to content

Commit fc7f939

Browse files
authored
Merge pull request #6 from KredeGC/dev
Dev
2 parents 89947ea + f2d3657 commit fc7f939

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

include/bitstream/stream/bit_reader.h

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

include/bitstream/stream/bit_writer.h

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

0 commit comments

Comments
 (0)