Skip to content

Function that returns the number of bytes needed for an output buffer #2

@ethteck

Description

@ethteck

I'd like to be able to allocate just enough space for my output buffer, and from a discussion in discord, it seems a standard way to do this is to run the code once, collecting the number of bytes required, and then to return that information to the user to run it again, supplying a buffer of the specified size.

The invocation to calculate the number of bytes should avoid using any callbacks.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions