@@ -52,10 +52,6 @@ class MIOBuffer;
5252class IOBufferReader ;
5353class VIO ;
5454
55- inkcoreapi extern int64_t max_iobuffer_size;
56- extern int64_t default_small_iobuffer_size;
57- extern int64_t default_large_iobuffer_size; // matched to size of OS buffers
58-
5955enum AllocType {
6056 NO_ALLOC,
6157 MEMALIGNED,
@@ -417,7 +413,7 @@ class IOBufferBlock : public RefCountObj
417413 section in MIOBuffer.
418414
419415 */
420- void alloc (int64_t i = default_large_iobuffer_size );
416+ void alloc (int64_t i);
421417
422418 /* *
423419 Clear the IOBufferData this IOBufferBlock handles. Clears this
@@ -1148,7 +1144,7 @@ class MIOBuffer
11481144 void dealloc_all_readers ();
11491145
11501146 void set (void *b, int64_t len);
1151- void alloc (int64_t i = default_large_iobuffer_size );
1147+ void alloc (int64_t i);
11521148 void append_block_internal (IOBufferBlock *b);
11531149 int64_t write (IOBufferBlock const *b, int64_t len, int64_t offset);
11541150
@@ -1290,7 +1286,7 @@ struct MIOBufferAccessor {
12901286 IOBufferReader *entry = nullptr ;
12911287};
12921288
1293- extern MIOBuffer *new_MIOBuffer_internal (const char *loc, int64_t size_index = default_large_iobuffer_size );
1289+ extern MIOBuffer *new_MIOBuffer_internal (const char *loc, int64_t size_index);
12941290
12951291class MIOBuffer_tracker
12961292{
@@ -1299,13 +1295,13 @@ class MIOBuffer_tracker
12991295public:
13001296 explicit MIOBuffer_tracker (const char *_loc) : loc(_loc) {}
13011297 MIOBuffer *
1302- operator ()(int64_t size_index = default_large_iobuffer_size )
1298+ operator ()(int64_t size_index)
13031299 {
13041300 return new_MIOBuffer_internal (loc, size_index);
13051301 }
13061302};
13071303
1308- extern MIOBuffer *new_empty_MIOBuffer_internal (const char *loc, int64_t size_index = default_large_iobuffer_size );
1304+ extern MIOBuffer *new_empty_MIOBuffer_internal (const char *loc, int64_t size_index);
13091305
13101306class Empty_MIOBuffer_tracker
13111307{
@@ -1314,7 +1310,7 @@ class Empty_MIOBuffer_tracker
13141310public:
13151311 explicit Empty_MIOBuffer_tracker (const char *_loc) : loc(_loc) {}
13161312 MIOBuffer *
1317- operator ()(int64_t size_index = default_large_iobuffer_size )
1313+ operator ()(int64_t size_index)
13181314 {
13191315 return new_empty_MIOBuffer_internal (loc, size_index);
13201316 }
@@ -1352,8 +1348,7 @@ class IOBufferBlock_tracker
13521348#define new_IOBufferBlock IOBufferBlock_tracker (RES_PATH(" memory/IOBuffer/" ))
13531349// //////////////////////////////////////////////////////////
13541350
1355- extern IOBufferData *new_IOBufferData_internal(const char *location, int64_t size_index = default_large_iobuffer_size,
1356- AllocType type = DEFAULT_ALLOC);
1351+ extern IOBufferData *new_IOBufferData_internal(const char *location, int64_t size_index, AllocType type = DEFAULT_ALLOC);
13571352
13581353extern IOBufferData *new_xmalloc_IOBufferData_internal (const char *location, void *b, int64_t size);
13591354
@@ -1364,7 +1359,7 @@ class IOBufferData_tracker
13641359public:
13651360 explicit IOBufferData_tracker (const char *_loc) : loc(_loc) {}
13661361 IOBufferData *
1367- operator ()(int64_t size_index = default_large_iobuffer_size , AllocType type = DEFAULT_ALLOC)
1362+ operator ()(int64_t size_index, AllocType type = DEFAULT_ALLOC)
13681363 {
13691364 return new_IOBufferData_internal (loc, size_index, type);
13701365 }
0 commit comments