Class SecureMemory
- Namespace
- NLightning.Common.Crypto.Primitives
- Assembly
- NLightning.Bolt11.dll
public sealed class SecureMemory : IDisposable
- Inheritance
-
SecureMemory
- Implements
- Inherited Members
Constructors
SecureMemory(int)
public SecureMemory(int size)
Parameters
size
int
Properties
Length
public int Length { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
~SecureMemory()
protected ~SecureMemory()
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
implicit operator ReadOnlySpan<byte>(SecureMemory)
public static implicit operator ReadOnlySpan<byte>(SecureMemory secureMemory)
Parameters
secureMemory
SecureMemory
Returns
implicit operator Span<byte>(SecureMemory)
public static implicit operator Span<byte>(SecureMemory secureMemory)
Parameters
secureMemory
SecureMemory