mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-04-09 21:10:18 +00:00
Merge b691a8e52c into 6357bc272c
This commit is contained in:
commit
cab4f0b3ac
1 changed files with 4 additions and 0 deletions
|
|
@ -861,6 +861,10 @@ class Packer:
|
|||
self._buffer.write(b"\xc9" + struct.pack(">I", L))
|
||||
self._buffer.write(struct.pack("B", typecode))
|
||||
self._buffer.write(data)
|
||||
if self._autoreset:
|
||||
ret = self._buffer.getvalue()
|
||||
self._buffer = BytesIO()
|
||||
return ret
|
||||
|
||||
def _pack_array_header(self, n):
|
||||
if n <= 0x0F:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue