You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
Hi, everyone
I've read source code kyotocabinet-1.2.79 recently, and there is a piece of code (at line 1936 file kcdirdb.h) that I can't clearly understand.
The code that compares input key with record's key: rec.ksiz == ksiz || !std::memcmp(rec.kbuf, kbuf, ksiz)
I think it must be something looks like: rec.ksiz == ksiz && !std::memcmp(rec.kbuf, kbuf, ksiz).
Thank you for reading my issue.
Hi, everyone
I've read source code kyotocabinet-1.2.79 recently, and there is a piece of code (at line 1936 file kcdirdb.h) that I can't clearly understand.
The code that compares input key with record's key:
rec.ksiz == ksiz || !std::memcmp(rec.kbuf, kbuf, ksiz)I think it must be something looks like:
rec.ksiz == ksiz && !std::memcmp(rec.kbuf, kbuf, ksiz).Thank you for reading my issue.