-
I have arrays of numbers (mix of std::vector and std::vector<uint32_t>). I would like to place them into a single CBOR file. I'm able to do it by making a new std::vector<uint8_t> and copying contest of float/uint array there and then using nlpohmann::json::binary(), but this adds extra memory copy. Is there a simpler way to do it, e.g. by providing simple pointer and number of bytes? |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Aug 30, 2020
Replies: 1 comment 1 reply
-
No, this is not possible: all values are stored inside the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fleon-psi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this is not possible: all values are stored inside the
json
class - it is not possible to store references.