Skip to content

In Memory Deserialization #2089

Closed
Closed
@HamzaHajeir

Description

@HamzaHajeir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions