Swift imports fixed-size C array as tuple limit size to 4096 ?

This c struct with fixed array size of 8096 imported ok using Swift with  Xcode 10:

 

typedef struct

{
  uint8_t   data[8192];
}
TEST_FIXED_ARRAY;
The same code failed to import using Swift with Xcode 11.2
Changing to data[4096]; is working ok however.
This break a lot of my C libraries that implement C fixed-array larger than 4096 elements

Powered by WPeMatico

You may also like...

Comments are closed.