다음을 통해 공유


NonCryptographicHashAlgorithm.GetHashAndReset 메서드

정의

오버로드

GetHashAndReset()

현재 계산된 해시 값을 가져오고 누적 상태를 지웁니다.

GetHashAndReset(Span<Byte>)

계산된 해시 값을 작성하여 destination 누적 상태를 지웁니다.

GetHashAndReset()

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

현재 계산된 해시 값을 가져오고 누적 상태를 지웁니다.

public:
 cli::array <System::Byte> ^ GetHashAndReset();
public byte[] GetHashAndReset ();
member this.GetHashAndReset : unit -> byte[]
Public Function GetHashAndReset () As Byte()

반환

Byte[]

이미 제공된 데이터의 해시 값입니다.

적용 대상

GetHashAndReset(Span<Byte>)

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

계산된 해시 값을 작성하여 destination 누적 상태를 지웁니다.

public:
 int GetHashAndReset(Span<System::Byte> destination);
public int GetHashAndReset (Span<byte> destination);
member this.GetHashAndReset : Span<byte> -> int
Public Function GetHashAndReset (destination As Span(Of Byte)) As Integer

매개 변수

destination
Span<Byte>

계산된 해시 값을 받는 버퍼입니다.

반환

에 기록 destination된 바이트 수이며, 항상 HashLengthInBytes입니다.

예외

destination이(가) HashLengthInBytes보다 짧은 경우

적용 대상