Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Use C Style Arrays #5

Open
CuriousTommy opened this issue Jul 6, 2020 · 1 comment
Open

Unable to Use C Style Arrays #5

CuriousTommy opened this issue Jul 6, 2020 · 1 comment

Comments

@CuriousTommy
Copy link
Contributor

Hello, I am currently playing around with blobify and I noticed that using a C arrays causes errors to appear (error.log). Here is an example below:

struct headerSFAT {
    char indentifier[4];
    uint16_t length;
    uint16_t byteOrder;
    uint32_t fileSize;
    uint32_t dataOffset;
    uint16_t versionNumber;
    uint16_t reserved;
};

I was wondering if this is normal or not?

@neobrain
Copy link
Owner

If there was a reason not to support C-array members, I can't remember it anymore.

As you probably noticed, std::array members are supported, since they are special-cased in load.hpp. A similar check could be added for C-style arrays.

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

No branches or pull requests

2 participants