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

Output size configuration #307

Open
artvel opened this issue May 19, 2022 · 0 comments
Open

Output size configuration #307

artvel opened this issue May 19, 2022 · 0 comments

Comments

@artvel
Copy link

artvel commented May 19, 2022

Is it possible to configure the output of tynilib to achieve a result like "github.com/vmihailenco/msgpack/v5" with:

	var buf bytes.Buffer
	enc := msgpack.NewEncoder(&buf)
	enc.UseArrayEncodedStructs(true) // <---------
	enc.UseCompactInts(true) // <---------
	enc.UseCompactFloats(true) // <---------
	_ = enc.Encode(val)

to keep the output as low as possible..?

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

No branches or pull requests

1 participant