git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Struct memory format question


Le 28/04/2018 à 16:55, Andy Grove a écrit :
> I have implemented structs in Rust as a vector of Arrays. Each nested array
> uses a byte-aligned contiguous region of memory, but the array for field 2
> is not contiguous with the array for field 1.

Child arrays of a nested arrays do not have to be contiguous with one
another.  They are truly independent arrays that just happen to be
related through their usage in the nested array.

Regards

Antoine.



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-arrow-development/msg04308.html on line 82
Call Stack
#TimeMemoryFunctionLocation
10.0005362904{main}( ).../msg04308.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-arrow-development/msg04308.html on line 82
Call Stack
#TimeMemoryFunctionLocation
10.0005362904{main}( ).../msg04308.html:0