mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 04:08:07 +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:
@@ -113,7 +113,7 @@ class Builder(object):
|
|||||||
MAX_BUFFER_SIZE = 2**31
|
MAX_BUFFER_SIZE = 2**31
|
||||||
## @endcond
|
## @endcond
|
||||||
|
|
||||||
def __init__(self, initialSize):
|
def __init__(self, initialSize=1024):
|
||||||
"""Initializes a Builder of size `initial_size`.
|
"""Initializes a Builder of size `initial_size`.
|
||||||
|
|
||||||
The internal buffer is grown as needed.
|
The internal buffer is grown as needed.
|
||||||
|
|||||||
Reference in New Issue
Block a user