Skip to content

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy-less committed Dec 7, 2024
1 parent b00cbb9 commit 6a3f2e9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions TCPMaid/Miscellaneous/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,10 @@ private async Task ListenAsync() {
return;
}
}
private sealed class PendingMessage {
public int TotalMessageLength;
public byte[] CurrentBytes;
public PendingMessage(int total_message_length, byte[] initial_bytes) {
TotalMessageLength = total_message_length;
CurrentBytes = initial_bytes;
}
private sealed record PendingMessage(int TotalMessageLength, byte[] CurrentBytes) {
public int TotalMessageLength = TotalMessageLength;
public byte[] CurrentBytes = CurrentBytes;

public bool Incomplete => CurrentBytes.Length < TotalMessageLength;
}
}

0 comments on commit 6a3f2e9

Please sign in to comment.