Skip to content

Commit

Permalink
Add more accessors for global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaichAlonso committed Nov 15, 2024
1 parent 55ed79f commit 3ddb95c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tkrzw_lib_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@

namespace tkrzw {

int32_t GetMaxNumberBufferSize() {
return NUM_BUFFER_SIZE;
}

int64_t GetMaxMemorySize() {
return MAX_MEMORY_SIZE;
}

int32_t GetPageSize()
{
#if defined(_SYS_WINDOWS_)
Expand Down
6 changes: 6 additions & 0 deletions tkrzw_lib_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ extern const bool IS_POSIX;
/** True if the byte order is big endian. */
extern const bool IS_BIG_ENDIAN;

/** The buffer size for a numeric string expression. */
int32_t GetMaxNumberBufferSize();

/** The maximum memory size. */
int64_t GetMaxMemorySize();

/** The size of a memory page on the OS. */
int32_t GetPageSize();

Expand Down

0 comments on commit 3ddb95c

Please sign in to comment.