Closed
Description
Hi there,
I'm wondering whether there's a way I can deserialize and point to input buffer(s) when deserializing?
Use case: I'm building a system where I get input data by communication channels, pass it to a deserializer function that writes data out to std::string_view
.
Currently When the callee function uses the document-based deserialization, which copies from the buffer, the std::string_view
points to local memory that will be invalidated when it returns the parsed data.
Is there a way to get the deserialized data pointing to the input buffer?
Regards,
Hamza Hajeir
Hamza