mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Set default initialSize for Builder to 0 (#6310)
* Set default initialSize for Builder to 0 * Change default size of builder to 1024. This matches what the C++ and Java versions do.
This commit is contained in:
parent
442949bc11
commit
aafc5dc950
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ class Builder(object):
|
|||
MAX_BUFFER_SIZE = 2**31
|
||||
## @endcond
|
||||
|
||||
def __init__(self, initialSize):
|
||||
def __init__(self, initialSize=1024):
|
||||
"""Initializes a Builder of size `initial_size`.
|
||||
|
||||
The internal buffer is grown as needed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue