public bool Equals(IAlgorithmBuffer other) { if (other is AlgorithmBuffer buffer) { return(Equals(buffer)); } return(_buffer.SequenceEqual(other.CurrentBuffer.ToArray())); }
public static string AsHexString(this IAlgorithmBuffer algorithmBuffer) { algorithmBuffer.NotNull(nameof(algorithmBuffer)); return(algorithmBuffer.CurrentBuffer.ToArray().AsHexString()); }