PAINTROID-761: Implement foundational Kryo binary reader in Dart#165
Open
Amit-Matth wants to merge 1 commit into
Open
PAINTROID-761: Implement foundational Kryo binary reader in Dart#165Amit-Matth wants to merge 1 commit into
Amit-Matth wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request is the first step of our 4-stage plan to add backward compatibility for legacy
.catrobatfiles. It introduces the low-level binary reader in Dart to decode raw Kryo streams.PAINTROID-761
Note: The comments in the code have been kept to make review of the binary format easier, and they will be removed once the PR has been reviewed.
New Features and Enhancements
KryoReader): Created a high-performance binary reader underlib/core/backward_compatibility/kryo_reader.dartto decode primitive data types (integers, floats, doubles, booleans, characters).test/unit/serialization/kryo_reader_test.dartto verify navigation, fixed primitives, varints, and optimized strings. All tests are passing locally.lib/core/backward_compatibility/, ensuring zero impact on the existing codebase during review.Backward Compatibility Roadmap
To make this feature easy to review and track, the work is organized into four sequential stages:
KryoReaderto parse bytes into basic Dart datatypes (ints, strings, doubles).CommandManagerModelandColorHistory).Refactorings and Bug Fixes
Checklist
Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.