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

NBT Tweaks #522

Merged
merged 8 commits into from
Sep 6, 2023
Merged

NBT Tweaks #522

merged 8 commits into from
Sep 6, 2023

Conversation

rj00a
Copy link
Member

@rj00a rj00a commented Sep 5, 2023

Objective

valence_nbt could use some adjustments.

Solution

  • Move top-level conversion functions to conv module.
  • Remove public Display impl from Tag.
  • Remove implicit "null" byte check when decoding compounds. This check can be done in advance if desired.
  • Remove potentially dangerous memory preallocation when decoding binary.
  • Make Compound::to_binary and Compound::from_binary free functions for discoverability and familiarity with serde_json.

@rj00a rj00a enabled auto-merge (squash) September 6, 2023 00:50
@rj00a rj00a merged commit 1ddde71 into main Sep 6, 2023
10 checks passed
@rj00a rj00a deleted the nbt-tweaks branch September 6, 2023 01:06
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.

1 participant