MCPcopy Create free account
hub / github.com/alibaba/GraphScope / get_block

Method get_block

python/graphscope/client/archive.py:48–52  ·  view source on GitHub ↗

Peek a block of given size.

(self, size)

Source from the content-addressed store, hash-verified

46 return len(self._buffer) == 0
47
48 def get_block(self, size):
49 """Peek a block of given size."""
50 block = self._buffer[self._head : self._head + size]
51 self._head += size
52 return block
53
54 def get_size(self):
55 size = struct.unpack("q", self.get_block(self._size_of_int64))[0]

Callers 10

get_sizeMethod · 0.95
get_sized_blockMethod · 0.95
get_bytesMethod · 0.95
get_stringMethod · 0.95
get_intMethod · 0.95
get_uint64Method · 0.95
get_uint32Method · 0.95
get_boolMethod · 0.95
decode_numpyFunction · 0.95
decode_dataframeFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected