public static MultiGridData ParseBinHeader(BinaryReader br, string filename, MultiGridData multigrid) { // Read header PatchDataIO.SkipBinVersion(br); PatchDataIO.ReadBinBoundsHeader(br, filename, multigrid); return(multigrid); }
private static GraphData ParseBinHeader(BinaryReader br, GraphData graph) { // Read header PatchDataIO.ReadBinBoundsHeader(br, graph); // Read cell sizes graph.cellSizeX = br.ReadDouble(); graph.cellSizeY = br.ReadDouble(); return(graph); }
private static GraphData ParseBinHeader(BinaryReader br, string filename, GraphData graph) { // Read header PatchDataIO.SkipBinVersion(br); PatchDataIO.ReadBinBoundsHeader(br, filename, graph); // Read cell sizes graph.cellSizeX = br.ReadDouble(); graph.cellSizeY = br.ReadDouble(); return(graph); }
private static GridData ParseBinHeader(BinaryReader br, GridData grid) { // Read header PatchDataIO.ReadBinBoundsHeader(br, grid); // Read categories count int count = br.ReadInt32(); if (count > 0) { grid.categories = new Category[count]; } return(grid); }
public static GridData ParseBinHeader(BinaryReader br, string filename, GridData grid) { // Read header PatchDataIO.SkipBinVersion(br); PatchDataIO.ReadBinBoundsHeader(br, filename, grid); // Read categories count int count = br.ReadInt32(); if (count > 0) { grid.categories = new IntCategory[count]; } return(grid); }
public static PointData ParseBinHeader(BinaryReader br, string filename, PointData pointData) { // Read header PatchDataIO.SkipBinVersion(br); PatchDataIO.ReadBinBoundsHeader(br, filename, pointData); // Read categories count int count = br.ReadInt32(); if (count > 0) { pointData.categories = new IntCategory[count]; } return(pointData); }