Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxb45 committed Jul 15, 2021
1 parent 2b40d1e commit 1e0efe6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

# unref
libxdb.remixdb_unref.argtypes = [c_void_p]
libxdb.remixdb_unref.restype = c_void_p

# put
# xdbptr, keyptr, keylen, vptr, vlen -> bool
Expand Down Expand Up @@ -162,7 +161,7 @@ def peek(self):
klen = c_uint()
vlen = c_uint()
if libxdb.remixdb_iter_peek(self.iptr, self.kbuf, byref(klen), self.vbuf, byref(vlen)):
#kbuf[klen.value] = b'\x00'
self.kbuf[klen.value] = b'\x00'
#vbuf[vlen.value] = b'\x00'
return (self.kbuf.value.decode(), klen.value, msgpack.unpackb(self.vbuf.value), vlen.value)
else:
Expand Down

0 comments on commit 1e0efe6

Please sign in to comment.