baseline: OpenMU upstream b5a0961 (fresh source)
This commit is contained in:
17
src/Network/ISpanDecryptor.cs
Normal file
17
src/Network/ISpanDecryptor.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// <copyright file="ISpanDecryptor.cs" company="MUnique">
|
||||
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
|
||||
// </copyright>
|
||||
|
||||
namespace MUnique.OpenMU.Network;
|
||||
|
||||
/// <summary>
|
||||
/// This interface specifies an decryptor, which decrypts span data packets in-place.
|
||||
/// </summary>
|
||||
public interface ISpanDecryptor
|
||||
{
|
||||
/// <summary>
|
||||
/// Decrypts the packet.
|
||||
/// </summary>
|
||||
/// <param name="packet">The encrypted data packet. The decrypted result will be written back to the same span.</param>
|
||||
void Decrypt(Span<byte> packet);
|
||||
}
|
||||
Reference in New Issue
Block a user