Quantcast
Channel: Package Manager - Swift Forums
Viewing all articles
Browse latest Browse all 166

Unexpected size returned for tuple?

$
0
0

I'm using a C library that returns a fixed-length array, which Swift represents as a tuple, but I'd like it as an array to iterate through it.

From the debugger screenshot below, in the watch expressions, SubFrame_Report_s is size 16, and a tuple of 4 SubFrame_Report_s values is size 32, but I would expect 64 (16 * 4).

Why am I getting 32 instead of 64 for this tuple?

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 166

Trending Articles