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
We can query key if we know it:
Cborg intent = top.find("body").find("intents")
But how to get all keys of the map?
The text was updated successfully, but these errors were encountered:
Or better make iterator which returns key and value
Sorry, something went wrong.
Seems to be fixed at TRUEPIC/cborg:
See test9() at cborg/test/test.cpp at master · TRUEPIC/cborg:
test9()
Cborg top(buffer, sizeof(buffer)); printf("Test 9: Iterate map.\r\n"); Cborg key = top.getKey(0); std::string keyName; key.getString(keyName); Cborg val = top.find(keyName.c_str(), keyName.size()); uint32_t value; val.getUnsigned(&value); printf("First key: %s value: %d\r\n", keyName.c_str(), value); key = top.getKey(1); key.getString(keyName); val = top.find(keyName.c_str(), keyName.size()); val.getUnsigned(&value); printf("Second key: %s value: %d\r\n", keyName.c_str(), value);
No branches or pull requests
We can query key if we know it:
But how to get all keys of the map?
The text was updated successfully, but these errors were encountered: