-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Streamreader #421
Merged
Merged
Streamreader #421
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bd6b210
Introduce SharedBuffer.
mgautierfr da21218
Dropped MemoryViewBuffer
veloman-yunkan 2767c04
Dropped MemoryBuffer
veloman-yunkan 269c942
Dropped MMapBuffer
veloman-yunkan fe9754f
Remove SharedBuffer and make Buffer the only class to contain data.
mgautierfr 6382f68
Blob do not depend of Buffer.
mgautierfr 2a025ec
Do not use external shared_ptr to keep buffer memory alive.
mgautierfr f19fd25
Introduced zim::IDataStream
veloman-yunkan 86ef980
IStreamReader allow to get a reader.
mgautierfr a4ed832
Enter DecodedDataStream
veloman-yunkan 695fb9f
Adapt DecoderStreamReader to wrap a Reader instead of a InputStream.
mgautierfr 227df39
zim::ReaderDataStreamWrapper
veloman-yunkan 9c469f8
Adapt RawStreamReader to wrap a reader.
mgautierfr b8f3eb7
Enter BufDataStream
veloman-yunkan d796085
Adapt BufferStreamer to wrap a `Buffer` instead of raw data.
mgautierfr 480780a
Got rid of read_size() in cluster.cpp
veloman-yunkan 1b5f8e7
Make the Cluster use `IStreamReader`.
mgautierfr 76c60b4
Make `Dirent` use BufferStreamer.
mgautierfr 9d358d4
Make FileHeader use `BufferStreamer`.
mgautierfr 8b83dc1
Faster Blob/Buffer constructor for non-owned data case
veloman-yunkan 04c4020
fixup! Adapt BufferStreamer to wrap a `Buffer` instead of raw data.
mgautierfr 39533c7
fixup! Adapt DecoderStreamReader to wrap a Reader instead of a InputS…
mgautierfr 04843d9
fixup! Adapt RawStreamReader to wrap a reader
mgautierfr 4672b19
Move `BufferReader` to its own file.
mgautierfr b3e64fe
Remove `Buffer.as` method.
mgautierfr 8a816f2
fixup! Do not use external shared_ptr to keep buffer memo
mgautierfr 12218e2
Rename tempfile.(cpp|h) to tools.(cpp|h)
mgautierfr f5e682d
Move `write_to_buffer` test function to a generic helper function.
mgautierfr 004afcb
Remove a few useless empty lines
kelson42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
qualifiers on return types offer no real protection if we talk about return-by-value of a type with reference semantics