/* Construction/Destruction */ public RandomQuadnodeGenerator(int megabytes) { int totalBytes = Mathematics.MegaBytesToBytes(megabytes); int structs = Mathematics.BytesToStructCount <int>(totalBytes); Structs = new Quadnode[structs]; for (int x = 0; x < structs; x++) { Structs[x] = Quadnode.BuildRandomStruct(); } Bytes = StructArray.GetBytes(Structs); File.WriteAllBytes(TestFileName, Bytes); }