Skip to content

Commit 0e41000

Browse files
committed
Also expose buf_size
1 parent a7eed94 commit 0e41000

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/core/common/ojph_file.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@ namespace ojph {
210210
*/
211211
size_t get_used_size() const { return used_size; }
212212

213+
/**
214+
* @brief Call this function to get the total buffer size of the memory
215+
* file including unused space.
216+
*
217+
* @return the full size of the memory file.
218+
*/
219+
size_t get_buf_size() const { return buf_size; }
220+
213221
private:
214222
/**
215223
* @brief This function expands storage by x1.5 needed space.

0 commit comments

Comments
 (0)