未验证 提交 aafc5dc9 编写于 作者: R Richard A Hofer 提交者: GitHub

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.
上级 442949bc
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册