packer: add buf_size option (#604)

And change the default buffer size to 256KiB.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
Co-authored-by: Rodrigo Tobar <rtobar@icrar.org>
This commit is contained in:
Inada Naoki 2024-05-06 00:49:12 +09:00 committed by GitHub
parent bf2413f915
commit 72e65feb0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 27 deletions

View file

@ -210,7 +210,7 @@ def unpackb(object packed, *, object object_hook=None, object list_hook=None,
raise ValueError("Unpack failed: error = %d" % (ret,))
cdef class Unpacker(object):
cdef class Unpacker:
"""Streaming unpacker.
Arguments: