[Mono-dev] Unsafe struct array reading

Miguel de Icaza miguel at novell.com
Tue Sep 8 18:15:33 EDT 2009


Hello,

> I'm looking for a way to read and write array of structs from a file
> (byte array).

If you use the proper packing and do not care about breaking across
endian systems, you can always just write the entire array of structures
out and read them back in using unsafe pointers.

miguel



More information about the Mono-devel-list mailing list