Skip to content
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

Is it possible to use bits instead of uin32_t inside raxNode? #26

Open
royguo opened this issue Dec 1, 2019 · 0 comments
Open

Is it possible to use bits instead of uin32_t inside raxNode? #26

royguo opened this issue Dec 1, 2019 · 0 comments

Comments

@royguo
Copy link

royguo commented Dec 1, 2019

typedef struct raxNode {
    uint32_t iskey:1;     /* Does this node contain a key? */
    uint32_t isnull:1;    /* Associated value is NULL (don't store it). */
    uint32_t iscompr:1;   /* Node is compressed. */
    uint32_t size:29;     /* Number of children, or compressed string len. */

e.g. iskey only have 1 or 0 here, right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant