Renci.SshNet.Common.ReadOnlyMemoryOwner
A type representing ownership of a rented, read-only buffer.
namespace Renci.SshNet.Security.Cryptography
{
public abstract class BlockCipher : SymmetricCipher
{
public byte BlockSize { get; }
protected BlockCipher(byte[] key, byte blockSize, CipherMode mode, IBlockCipherPadding padding);
public abstract int EncryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
public abstract int DecryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
}
}
namespace Renci.SshNet.Common
{
internal sealed class ReadOnlyMemoryOwner : IMemoryOwner<byte>, IDisposable
{
public int Length { get; }
public bool IsEmpty { get; }
public ReadOnlySpan<byte> Span { get; }
public ReadOnlyMemoryOwner(System.Net.ArrayBuffer buffer);
public void Slice(int start);
public void Dispose();
}
}