From 3ea717043c15a0f780c246d56eea953f2c2b85fd Mon Sep 17 00:00:00 2001 From: lionsoul2014 Date: Thu, 30 Oct 2025 23:17:43 +0800 Subject: [PATCH] fix the bug of buffer read --- binding/python/xdb/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/python/xdb/searcher.py b/binding/python/xdb/searcher.py index eeb889c..c22e092 100644 --- a/binding/python/xdb/searcher.py +++ b/binding/python/xdb/searcher.py @@ -98,7 +98,7 @@ class Searcher(object): def read(self, offset: int, length: int): # check the content buffer first if self.c_buffer != None: - return self.c_buffer[offset, offset + length] + return self.c_buffer[offset:offset+length] # load the buffer from file self.__handle.seek(offset)