def end_of(self, buf, offset, data_size, ptrs_size): buf = Segment(buf) p = ptr.new_struct(0, data_size, ptrs_size) return end_of(buf, p, offset - 8)
def _get_end(self): p = ptr.new_list(0, self._size_tag, self._item_count) return end_of(self._seg, p, self._offset - 8)
def _get_end(self): p = ptr.new_struct(0, self._data_size, self._ptrs_size) return end_of(self._seg, p, self._data_offset - 8)
def end_of(self, buf, offset, data_size, ptrs_size): buf = CapnpBuffer(buf) p = ptr.new_struct(0, data_size, ptrs_size) return end_of(buf, p, offset - 8)