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

Unexpected max serialisation length #4

Closed
benguela opened this issue May 27, 2020 · 4 comments
Closed

Unexpected max serialisation length #4

benguela opened this issue May 27, 2020 · 4 comments

Comments

@benguela
Copy link

I defined the following list

            <list name="VideoBlocks">
                <element>
                    <data name="VideoBlock" length="64"/>
                </element>
                <countPrefix>
                    <int name="VideoBlockCounter" type="uint8" />
                </countPrefix>
            </list>

I get the following error on compile

`error: static assertion failed: Unexpected max serialisation length
  900 |     static_assert(MsgMaxLen == 16352U, "Unexpected max serialisation length");`

If I remove the length property from the data field it compiles fine but I can't use this as each VideoBlock is a fixed length (64 bytes) and I have fields after the VideoBlocks in my protocol.

Am I specifying my schema incorrectly for this case?

many thanks.

@arobenko
Copy link
Member

arobenko commented May 27, 2020 via email

@arobenko
Copy link
Member

Should be fixed now on "develop" branch.

@benguela
Copy link
Author

tested and working.

thanks

@arobenko
Copy link
Member

arobenko commented Jun 1, 2020

Fixed in v3.4.1

@arobenko arobenko closed this as completed Jun 1, 2020
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