We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
你说的 10 转 62 是指 leveldb_debug.cc 文件中的 decimalTo62() 函数吗?
leveldb_debug.cc
decimalTo62()
如果是的话,这个函数的作用就是将一个 10 进制的长整型转换成 62 进制编码的字符串,可以用在生成短链接字符串上,当时应该是为了方便随便找了个 demo 函数,可以参考 如何设计一个 Tiny URL 系统?
Slice 的话,我觉得可能就是为了方便,用一个简单的实现来满足 leveldb 需要的所有功能,另一个原因也可能是因为拷贝 Slice 的开销更小。
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: