You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions