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

feat: encode_to_json_using_fixed_buffer #9

Closed

Conversation

enghitalo
Copy link
Contributor

@enghitalo enghitalo commented Dec 3, 2023

image

The fixed array will work as string limiter

	p := Person{
		name: 'Bilbo Baggins'
		age: 99
	}

	mut fixed_string_buf := [29]u8{}
	msgpack.encode_to_json_using_fixed_buffer(p, mut fixed_string_buf)

TODO

  • module msgpack_to

decode.v Outdated Show resolved Hide resolved
decode.v Outdated Show resolved Hide resolved
decode.v Outdated Show resolved Hide resolved
decode.v Outdated Show resolved Hide resolved
decode.v Outdated Show resolved Hide resolved
}
mp_str_8, mp_str_16, mp_str_32, mp_fix_str_min...mp_fix_str_max {
data := d.buffer
// REVIEW - why it is slow??
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know what or why.

decode.v Outdated Show resolved Hide resolved
enghitalo and others added 2 commits December 4, 2023 14:06
Co-authored-by: Delyan Angelov <[email protected]>
Co-authored-by: Delyan Angelov <[email protected]>
decode.v Outdated Show resolved Hide resolved
Co-authored-by: Delyan Angelov <[email protected]>
decode.v Outdated Show resolved Hide resolved
@enghitalo enghitalo marked this pull request as draft December 5, 2023 13:59
@enghitalo enghitalo closed this Feb 28, 2024
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