Skip to content

Commit a7eed94

Browse files
committed
Exposes used_size for mem_outfile
Closes aous72#165
1 parent be997ab commit a7eed94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/common/ojph_file.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ namespace ojph {
203203
*/
204204
void write_to_file(const char *file_name) const;
205205

206+
/**
207+
* @brief Call this function to get the used size of the memory file.
208+
*
209+
* @return the used size of the memory file.
210+
*/
211+
size_t get_used_size() const { return used_size; }
212+
206213
private:
207214
/**
208215
* @brief This function expands storage by x1.5 needed space.

0 commit comments

Comments
 (0)