Implement XDR decoder classes for RFC 4506 compliant binary decoding#56
Merged
Implement XDR decoder classes for RFC 4506 compliant binary decoding#56
Conversation
Co-authored-by: streamich <9773803+streamich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement XDR decoder
Implement XDR decoder classes for RFC 4506 compliant binary decoding
Sep 16, 2025
Copilot stopped work on behalf of
streamich due to an error
September 16, 2025 18:20
|
🎉 This PR is included in version 1.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 PR implements two XDR (External Data Representation Standard) decoder classes to complement the existing XDR encoder functionality, providing complete RFC 4506 compliant binary data processing capabilities.
Implementation
XdrDecoder - Lower-level decoder
A foundational decoder class that uses the
Readerinterface for explicit type-based XDR decoding:XdrSchemaDecoder - Higher-level schema-aware decoder
A schema-driven decoder that automatically handles complex XDR structures based on type definitions:
Key Features
types.tsXdrEncoderandXdrSchemaEncoderTesting
Added 65 comprehensive tests covering:
All existing tests continue to pass, ensuring backward compatibility.
Fixes #55.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.