Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NewStreamWriter set buffer----Can I specify a buffer when streaming? #1844

Unanswered
pipi-king asked this question in Q&A
Discussion options

I want to ask if the buffer can be specified when writing down stream. When the NewStreamWriter is initialized, it wants to be like csv. Newwriter (b), because my structure is like this, and I want to specify buffer for streaming buffer.

type newReaderWriter struct {
c chan [][]string
b *bytes.Buffer
w *excelize.StreamWriter
f *excelize.File
rowNumber int
sheet string
}

After streaming writing, I can only write to my buffer through writeTobuffer, but there are only two sets of buffers, which makes no sense, and the memory of the file container will explode. Can I make a buffer when initializing?

You must be logged in to vote

Replies: 0 comments

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

AltStyle によって変換されたページ (->オリジナル) /