Replies: 2 comments 5 replies
-
The aim for a fixed char buffer was to allow optimum performance by not checking the output length, given that the generated size was known to be within the allocated buffer. Adding checks will increase the runtime cost, but I do see where it could be useful in embedded environments where you don't want to have any dynamic allocations. What is your use case for this feature? I do think it would be good to add, I just want to take into account use cases in developing a solution. As for JSON pointer syntax for writing, Glaze does support partial writing with JSON pointer syntax: Partial Write I will open issues for each of these requested features. Thanks for the feedback! |
Beta Was this translation helpful? Give feedback.
-
I added the issues #1285 and #1286 for buffer length write checking and runtime JSON pointer syntax for writing. |
Beta Was this translation helpful? Give feedback.
-
I see where this happens on resizable buffers, but I don't see any option to pass the length of a fixed char[] buffer to the write methods. Ideally, we'd fail with an error if the generated JSON doesn't fit in the buffer.
Also, any thoughts on ever supporting something like JSON pointer syntax for writing?
Beta Was this translation helpful? Give feedback.
All reactions