Skip to content

buffered reader has configurable size, and makes reads filling whole buffer - #2817

Closed
tbonfort wants to merge 2 commits into
OSGeo:masterfrom
tbonfort:buffer-vsiplugin
Closed

tbonfort wants to merge 2 commits into
OSGeo:masterfrom
tbonfort:buffer-vsiplugin

Conversation

@tbonfort

Copy link
Copy Markdown
Member

This PR modifies VSIBufferedReaderHandle so that it emits reads to its underlying VSIVirtualHandle that fill up the private buffer. The buffer size becomes configurable.

vsi_l_offset Tell() override;
size_t Read( void *pBuffer, size_t nSize,
size_t nMemb ) override;
int ReadMultiRange( int nRanges, void ** ppData, const vsi_l_offset* panOffsets, const size_t* panSizes ) override;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be removed in the scope of this PR.


nCurOffset += nRead;
#ifdef DEBUG_VERBOSE
CPLAssert(m_poBaseHandle->Tell() == nBufferOffset + nBufferSize);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need updating

@tbonfort
tbonfort marked this pull request as draft August 1, 2020 08:51
@stale

stale Bot commented Aug 22, 2020

Copy link
Copy Markdown

The GDAL project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 21 days and is being automatically marked as "stale". If you think this pull request should be merged, please check - that all unit tests are passing - that all comments by reviewers have been addressed - that there is enough information for reviewers, in particular

  • link to any issues which this pull request fixes
  • add a description of workflows which this pull request fixes
  • add screenshots if applicable
  • that you have written unit tests where possible In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request. If there is no further activity on this pull request, it will be closed in a week.

@stale stale Bot added the stale label Aug 22, 2020
@stale

stale Bot commented Aug 29, 2020

Copy link
Copy Markdown

While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 28 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the GDAL project can do to help push this PR forward please let us know how we can assist.

@stale stale Bot closed this Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant