General refactor and cleanup.

This commit is contained in:
2024-04-30 04:30:11 +01:00
parent 886bd83e85
commit fa6f1b2e46
34 changed files with 2153 additions and 2226 deletions

View File

@@ -85,8 +85,7 @@ public class ADC
case PLAIN:
chunkSize = GetChunkSize(readByte);
if(outPosition + chunkSize > destination.Length)
goto finished;
if(outPosition + chunkSize > destination.Length) goto finished;
Array.Copy(source, inputPosition, destination, outPosition, chunkSize);
outPosition += chunkSize;
@@ -99,8 +98,7 @@ public class ADC
temp[1] = source[inputPosition++];
offset = GetOffset(temp);
if(outPosition + chunkSize > destination.Length)
goto finished;
if(outPosition + chunkSize > destination.Length) goto finished;
if(offset == 0)
{
@@ -129,8 +127,7 @@ public class ADC
temp[2] = source[inputPosition++];
offset = GetOffset(temp);
if(outPosition + chunkSize > destination.Length)
goto finished;
if(outPosition + chunkSize > destination.Length) goto finished;
if(offset == 0)
{