MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / get_begin

Method get_begin

projects/Python/proto/fbe.py:1246–1256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1244
1245 # Get the optional value (being phase)
1246 def get_begin(self):
1247 if not self.has_value:
1248 return 0
1249
1250 fbe_optional_offset = self.read_uint32(self.fbe_offset + 1)
1251 assert (fbe_optional_offset > 0), "Model is broken!"
1252 if fbe_optional_offset <= 0:
1253 return 0
1254
1255 self._buffer.shift(fbe_optional_offset)
1256 return fbe_optional_offset
1257
1258 # Get the optional value (end phase)
1259 def get_end(self, fbe_begin):

Callers 1

getMethod · 0.95

Calls 2

read_uint32Method · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected