Skip to content

How big should be the destination buffer? #2

@marcobambini

Description

@marcobambini

Thanks for this very well written library!

In the char* bintob64( char* dest, void const* src, size_t size ); API, can you please specify how big dest should be (starting from size_t size)?

As far as I know, dest size should be at least: size_t destsize = ((size + 3 - (size % 3)) / 3) * 4;

Please note that a macro/function that computes that value, would be a very nice addition.

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