diff options
Diffstat (limited to 'tools/lib/h5tools.h')
-rw-r--r-- | tools/lib/h5tools.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h index 357154b..70d8734 100644 --- a/tools/lib/h5tools.h +++ b/tools/lib/h5tools.h @@ -30,6 +30,23 @@ #define END_OF_DATA 0x0002 /* + * The output functions need a temporary buffer to hold a piece of the + * dataset while it's being printed. This constant sets the limit on the + * size of that temporary buffer in bytes. For efficiency's sake, choose the + * largest value suitable for your machine (for testing use a small value). + */ +#if 1 +#define H5TOOLS_BUFSIZE (1024 * 1024) +#else +#define H5TOOLS_BUFSIZE (1024) +#endif + +/* + * Maximum size used in a call to malloc + */ +#define H5TOOLS_MALLOCSIZE ((size_t)1024 * 1024 * 1024) + +/* * Information about how to format output. */ typedef struct h5tool_format_t { |