Table of Contents

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

int

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 object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

~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

ReadOnlySpan<byte>

implicit operator Span<byte>(SecureMemory)

public static implicit operator Span<byte>(SecureMemory secureMemory)

Parameters

secureMemory SecureMemory

Returns

Span<byte>