Skip to content

Commit

Permalink
Collection Initializer simp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Halmai Ákos authored and Halmai Ákos committed Dec 27, 2023
1 parent e46e61c commit e3e9420
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SL3Reader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ public unsafe SL3Reader([DisallowNull] string path)
ReadOnlyCollectionBuilder<nuint> Primary = new(p8),
Secondary = new(p8),
DownScan = new(p10),
LeftSidescan = new(),
RightSidescan = new(),
LeftSidescan = [],
RightSidescan = [],
SideScan = new(p10),
Unknown6 = new(),
Unknown6 = [],
Unknown7 = new(p4),
Unknown8 = new(p4),
ThreeDimensional = new(p10),
DebugDigital = new(),
DebugNoise = new();
DebugDigital = [],
DebugNoise = [];

ReadOnlyCollectionBuilder<int> coordinate3DHelper = new(p10);
ReadOnlyCollectionBuilder<int> coordinateSidescanHelper = new(p10);
Expand Down Expand Up @@ -263,7 +263,7 @@ public unsafe void ExportImagery(string path, SurveyType surveyType = SurveyType
List<int> breakpoints = GetBreakPoints(imageFrames, out int maxHeight);
int numberOfColumns = (int)((Frame*)imageFrames[0])->LengthOfEchoData;
byte[] buffer = BitmapHelper.CreateBuffer(maxHeight, numberOfColumns);
string[] worldJoin = new string[6] { "0", "", "", "0", "", "" };
string[] worldJoin = ["0", "", "", "0", "", ""];

for (int i = 0, maxIndex = breakpoints.Count - 1; i < maxIndex; i++)
{
Expand Down

0 comments on commit e3e9420

Please sign in to comment.