Skip to content

Commit

Permalink
fix ReadJagged dropping the last dimension into the void.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjastorm380 committed Mar 13, 2022
1 parent fbe7492 commit 5f61e77
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Maelstrom/Source/Socket/Methods.vb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Public Partial Class Socket
ReDim Output(ReadIsJagged - 1)
ReadJaggedIndexer = 0
ReadJaggedCounter = 0
Do Until ReadJaggedIndexer = ReadIsJagged - 1
Do Until ReadJaggedIndexer = ReadIsJagged
UnpackInt32(ReadPaddedData, ReadJaggedIndexLength, ReadJaggedCounter)
ReadJaggedCounter += 4
Redim Output(ReadJaggedIndexer)(ReadJaggedIndexLength - 1)
Expand Down Expand Up @@ -277,7 +277,7 @@ Public Partial Class Socket
ReDim Output(ReadIsJagged - 1)
ReadJaggedIndexer = 0
ReadJaggedCounter = 0
Do Until ReadJaggedIndexer = ReadIsJagged - 1
Do Until ReadJaggedIndexer = ReadIsJagged
UnpackInt32(ReadPaddedData, ReadJaggedIndexLength, ReadJaggedCounter)
ReadJaggedCounter += 4
Redim Output(ReadJaggedIndexer)(ReadJaggedIndexLength - 1)
Expand Down
Binary file modified Maelstrom/bin/Release/netstandard2.0/Maelstrom.dll
Binary file not shown.
Binary file modified Maelstrom/obj/Release/netstandard2.0/Maelstrom.dll
Binary file not shown.
Binary file modified MaelstromTests/bin/Release/netcoreapp3.1/Maelstrom.dll
Binary file not shown.
Binary file modified MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.dll
Binary file not shown.
Binary file modified MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@
/home/prydaran/RiderProjects/Networking/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.vbproj.CopyComplete
/home/prydaran/RiderProjects/Networking/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.dll
/home/prydaran/RiderProjects/Networking/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.pdb
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.deps.json
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.runtimeconfig.json
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.runtimeconfig.dev.json
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.dll
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/MaelstromTests.pdb
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/bin/Release/netcoreapp3.1/Maelstrom.dll
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.vbprojAssemblyReference.cache
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.AssemblyInfoInputs.cache
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.AssemblyInfo.vb
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.vbproj.CopyComplete
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.dll
/home/prydaran/RiderProjects/Maelstrom/MaelstromTests/obj/Release/netcoreapp3.1/MaelstromTests.pdb

0 comments on commit 5f61e77

Please sign in to comment.