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
The comments for both init methods on XLSXFile state that the default buffer size is 10KB, but it is actually 10MB.
/// - Parameters:
/// - filepath: path to the `.xlsx` file to be processed.
/// - bufferSize: ZIP archive buffer size in bytes. The default is 10KB.
/// You may need to set a bigger buffer size for bigger files.
/// - errorContextLength: The error context length. The default is `0`.
/// Non-zero length makes an error thrown from
/// the XML parser with line/column location repackaged with a context
/// around that location of specified length. For example, if an error was
/// thrown indicating that there's an unexpected character at line 3, column
/// 15 with `errorContextLength` set to 10, a new error type is rethrown
/// containing 5 characters before column 15 and 5 characters after, all on
/// line 3. Line wrapping should be handled correctly too as the context can
/// span more than a few lines.
publicinit?(
filepath:String,
bufferSize:UInt32=10*1024*1024,
errorContextLength:UInt=0){
Let me know if the comment or code is wrong and I'll create a PR.
The text was updated successfully, but these errors were encountered:
Thanks, the comment is clearly wrong. I think it initially was 10KB, which led to corrupted data. Then I had to bump it to 10MB, but apparently forgot to update the comment.
Version
main branch
Description of the bug
The comments for both
init
methods onXLSXFile
state that the default buffer size is 10KB, but it is actually 10MB.Let me know if the comment or code is wrong and I'll create a PR.
The text was updated successfully, but these errors were encountered: