Skip to content

Add checks in CheckedFile constructors for file/buffer size - #355

Merged
asmaloney merged 1 commit into
masterfrom
throw-bad-file-size
Aug 12, 2026
Merged

Add checks in CheckedFile constructors for file/buffer size#355
asmaloney merged 1 commit into
masterfrom
throw-bad-file-size

Conversation

@asmaloney

Copy link
Copy Markdown
Owner

Type

  • New feature
  • Bug fix
  • Refactor
  • Documentation/formatting

Summary

Throws a new exception ErrorBadInputDataSize if the file size or data buffer size is not a multiple of 1024.

Rationale

From the standard:

6.2.2 The length of an E57 file shall be an integral multiple of 1024 bytes.

Checklist

  • The included code and/or docs were written by a human
  • If including code changes, clang-format was run on the code

Throws a new exception "ErrorBadInputDataSize" if the file size or data buffer size is not a multiple of 1024.

From the standard: 6.2.2 The length of an E57 file shall be an integral multiple of 1024 bytes.
@asmaloney
asmaloney merged commit e96d266 into master Aug 12, 2026
41 of 43 checks passed
@asmaloney
asmaloney deleted the throw-bad-file-size branch August 12, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant