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

std.debug.leb128: Implement functions capable of writing LEB128 to some form of output #5259

Closed
Soupertonic opened this issue May 3, 2020 · 1 comment
Labels
standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@Soupertonic
Copy link

Soupertonic commented May 3, 2020

While the leb128.zig file implements and provides functionality to read/parse/decode LEB128s, the file should also implement/provide functionality to write/encode LEB128s (into a buffer or stream).

Use Case

A simple but well known use case would be when dealing with Minecraft's protocol due to the fact it generally utilizing VarInts/VarLongs (LEB128) for numeric values.

@daurnimator daurnimator added the standard library This issue involves writing Zig code for the standard library. label May 3, 2020
@Vexu Vexu added this to the 0.7.0 milestone May 6, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.8.0 Oct 17, 2020
@andrewrk andrewrk modified the milestones: 0.8.0, 0.9.0 Nov 6, 2020
@andrewrk andrewrk modified the milestones: 0.9.0, 0.10.0 May 19, 2021
@ifreund
Copy link
Member

ifreund commented Sep 24, 2021

Implemented in #5588

@ifreund ifreund closed this as completed Sep 24, 2021
@ifreund ifreund modified the milestones: 0.10.0, 0.7.0 Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

No branches or pull requests

5 participants