205
204
raise AssertionError('Node did not start with "type=leaf": %r'
206
205
% (safe_string_from_size(self._start, last - self._start)))
209
207
key = self.extract_key(last)
211
209
temp_ptr = <char*>_my_memrchr(self._start, c'\0', last - self._start)
216
214
# capture the value string
217
215
value = safe_string_from_size(temp_ptr + 1, last - temp_ptr - 1)