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

Cant'read struct containing array #478

Open
patopat opened this issue May 2, 2023 · 0 comments
Open

Cant'read struct containing array #478

patopat opened this issue May 2, 2023 · 0 comments

Comments

@patopat
Copy link

patopat commented May 2, 2023

Hi,

Could you confirm that, now, is not possible to read struct containing array defined like this, even if size of array is marshalling ?

        [StructLayout(LayoutKind.Sequential)]
        public struct DB601
        {
            // Real, addr =92.0
            public float var1;
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
            public byte[] var2;
            // Real, addr=120.0
            public float var3;
        }

Regards,
Pat

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

1 participant