Skip to content

FluentInputFile BufferSize parameter question #2529

Closed Answered by Hwiet
Hwiet asked this question in Q&A
Discussion options

You must be logged in to vote

Answered my own question by looking at the code provided in the docs for InputFileMode.Buffer.

When the file size is larger than BufferSize, multiple buffers of BufferSize are emitted by the OnProgressChange callback. By concatenating the data in the buffers, you get all the bytes of the file.

Updated my repo in case it helps someone. Someday I'll do a PR on the docs to explicitly spell out this detail of InputFileMode.Buffer...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hwiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant