MCPcopy
hub / github.com/SFTtech/openage / append

Method append

openage/util/bytequeue.py:45–53  ·  view source on GitHub ↗

Adds bytes to the buffer.

(self, data: bytes)

Source from the content-addressed store, hash-verified

43 return self.size
44
45 def append(self, data: bytes) -> None:
46 """
47 Adds bytes to the buffer.
48 """
49 if not isinstance(data, bytes):
50 raise TypeError("expected a bytes object, but got " + repr(data))
51
52 self.bufs.append(data)
53 self.size += len(data)
54
55 def popleft(self, size: int) -> bytes:
56 """

Callers 15

to_stringMethod · 0.45
readMethod · 0.45
next_block_sizeMethod · 0.45
add_raw_member_pushMethod · 0.45
create_nyan_objectsMethod · 0.45
add_raw_memberMethod · 0.45
add_raw_patch_memberMethod · 0.45
add_raw_parentMethod · 0.45
add_raw_patch_parentMethod · 0.45
create_nyan_objectMethod · 0.45
_resolve_raw_valuesMethod · 0.45

Calls

no outgoing calls

Tested by 1

add_functionnameMethod · 0.36