Skip to content

Conversation

@krakow10
Copy link
Contributor

@krakow10 krakow10 commented Dec 1, 2025

See the diff without prereqs here: krakow10/rbx-dom@read-slice_zero-copy...3bd7126

Add a const-generic method to read a fixed-length array from a slice. I really like how all the RbxReadExt methods are able to use the new method. The RbxReadExt trait is changed to only depend on ReadSlice rather than Read. This means that, after decompressing the chunk, all reading in deserializer/state.rs is done from the ReadSlice trait. ChunkHeader and FileHeader are read before the chunk is decompressed which is why the code has to be changed.

krakow10 and others added 30 commits November 19, 2025 15:55
Utilize ToOwned to copy strings when necessary.
the split_at can panic, there is a checked variant if it should be handled gracefully
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