apple / apple/swift-binary-parsing

Feature Request: Support edge case in #magicNumber macro

Open
#41 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
387
Forks
24
Avg merge
1h 3m
Merged PRs (30d)
2

Description

I have a magic number for a file format that ends up being "BT\0\0" in string form, but the current definition of the macro doesn't handle escaped characters. Any possibility this could be supported? I realize that this probably begs the question on how many escaped characters should be supported, but I would think that potentially at least the ASCII centric ones might be a safe bet.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.