Skip to content

Commit b7942e4

Browse files
release v1.0.7
- [opt] optimise send/receive performance
1 parent 2dccfe0 commit b7942e4

File tree

5 files changed

+205
-95
lines changed

5 files changed

+205
-95
lines changed

Miku.Core/INetMiddleware.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public interface INetMiddleware
1414
/// <param name="output">A processed data to be sent</param>
1515
void ProcessSend(ref ReadOnlyMemory<byte> input, out ReadOnlyMemory<byte> output);
1616

17+
/// <summary>
18+
/// Triggered after sending data
19+
/// </summary>
20+
void PostSend();
21+
1722
/// <summary>
1823
/// Process data after receiving
1924
/// </summary>
@@ -22,5 +27,10 @@ public interface INetMiddleware
2227
/// <returns>Whether to halt the processing and how many bytes are consumed</returns>
2328
(bool halt, int consumedFromOrigin) ProcessReceive(ref ReadOnlyMemory<byte> input,
2429
out ReadOnlyMemory<byte> output);
30+
31+
/// <summary>
32+
/// Triggered after receiving data
33+
/// </summary>
34+
void PostReceive();
2535
}
2636
}

0 commit comments

Comments
 (0)