-
Notifications
You must be signed in to change notification settings - Fork 24
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
C# Async with .NET Core Kaitai.Struct.Runtime.Async #17
Open
pluskal
wants to merge
46
commits into
kaitai-io:master
Choose a base branch
from
pluskal:Async
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
…t class constructor visibility to protected.
pluskal
force-pushed
the
Async
branch
2 times, most recently
from
January 6, 2020 10:30
347a849
to
f0dca07
Compare
Add Async support to Runtime Closes #1 See merge request marta/kaitai_struct_csharp_runtime!3
Pipe reader See merge request marta/kaitai_struct_csharp_runtime!7
…ad' into 'master' Resolve "Ensure that ReadResult is not default before first read." Closes kaitai-io#4 See merge request marta/kaitai_struct_csharp_runtime!9
…tion to _readerContext.
…ls' into 'master' Resolve "Position should remain the same on Size, Pos, IsEof calls" Closes kaitai-io#5 See merge request marta/kaitai_struct_csharp_runtime!11
pluskal
changed the title
WIP: C# Async with .NET Core Kaitai.Struct.Runtime.Async
C# Async with .NET Core Kaitai.Struct.Runtime.Async
Feb 19, 2020
Resolve "`Nullable<T>` for optional fields are call" Closes kaitai-io#6 See merge request marta/kaitai_struct_csharp_runtime!14
…ster' Resolve "ImplicitNullable fails during serialization." Closes kaitai-io#7 See merge request marta/kaitai_struct_csharp_runtime!16
…lemement-advance' into 'master' Resolve "KaitaiStreamAsync encapsulating pipereader should implemement Advance" Closes kaitai-io#8 See merge request marta/kaitai_struct_csharp_runtime!18
Resolve "Add CancellationToken support." Closes kaitai-io#9 See merge request marta/kaitai_struct_csharp_runtime!19
…-ends-with-exception' into 'master' Resolve "Forward PipeReader.SeekAsync on completed ReadResult ends with exception" Closes kaitai-io#10 See merge request marta/kaitai_struct_csharp_runtime!20
…o-examined-the-whole-buffer' into 'master' Resolve "Fix PipeReaderContext.ReadByteAsync should advance to examined the whole buffer" Closes kaitai-io#11 See merge request marta/kaitai_struct_csharp_runtime!21
… deprecation warning message - generalmimon committed on Apr 26, 2020
…30e4 - generalmimon committed on Apr 27, 2020
Rebase on 0.9 See merge request marta/kaitai_struct_csharp_runtime!22
…am-ikaitaistreambase' into 'master' Resolve "Update Exceptions to use interfaces IKaitaiAsyncStream, IKaitaiStreamBase" Closes kaitai-io#12 See merge request marta/kaitai_struct_csharp_runtime!23
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.
Relates to kaitai-io/kaitai_struct#640 and kaitai-io/kaitai_struct_compiler#189
This PR adds an additional unit tests that ensures correct behavior of the runtime itself that is not dependent on the compiled KSY files.
An abstraction formed by
IKaitaiStreamBase
,IKaitaiAsyncStream
is introduced to decouple code and implementation to allow reimplementation of the Stream if needed. (I was unable to update the compiler to accept interface instead of direct type due to my lack of Scala knowledge and coupling in the compiler and translator code.)The ultimate goal is to introduce Asynchronous implementation that allows usage in massively parallel applications that consumes data in async streams. To achieve that,
IReaderContext
is introduced to abstract multiple implementations of the "Stream".StreamReaderContext
that suffers from a lack of asynchronicity due to the .NET'sStream
API that does not support asynchronous seek operation.PipeReaderContext
.The folder structure, project naming is changed to reflect C#/.NET conventions.