-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
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
请问value可以自定义类型吗? #25
Comments
另外,key可以自定义类型吗? |
可以,不过你需要计算一下每个结点的空间大小 |
我先看下代码,如有不懂的地方,还要叨扰。 |
请问下,节点空间计算在哪里,没找到对应的代码。 |
代码中的node是不是对应一个block。 |
参见 #define data(node) ((long *)(offset_ptr(node) + _max_entries * sizeof(key_t)))
#define sub(node) ((off_t *)(offset_ptr(node) + (_max_order - 1) * sizeof(key_t))) 其中 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问value可以自定义类型吗?
The text was updated successfully, but these errors were encountered: