Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/fmt: add nprint family of procs to get required buffer sizes #4935

Closed
wants to merge 3 commits into from

Conversation

mailgerigk
Copy link
Contributor

This pr adds nprint* style procs to fmt to be easily query how many bytes are needed to store the formatted output. This is useful if you want to acquire a buffer with the correct size to use with the bprint* procs.

@gingerBill
Copy link
Member

I see no need for this to exist in fmt but rather you want to create a stream that just counts the number of bytes written and then pass it to the fmt.wprint* procedures.

@gingerBill gingerBill closed this Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants