initialBufferSize top-level constant

int const initialBufferSize

Initial buffer size for FFI buffer allocations (256 KB).

Sized to cover typical medium result frames on the first attempt and avoid a -2 resize round-trip. Callers with known budgets should still pass callWithBuffer's initialSize / maxSize (streams: use chunkSize).

Implementation

const int initialBufferSize = 256 * 1024;