Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryCopyToDestination()

static bool Internal.Cryptography.Helpers.TryCopyToDestination ( this ReadOnlySpan< byte > source,
Span< byte > destination,
out int bytesWritten )
inlinestaticpackage

Definition at line 62 of file Helpers.cs.

63 {
64 if (source.TryCopyTo(destination))
65 {
66 bytesWritten = source.Length;
67 return true;
68 }
69 bytesWritten = 0;
70 return false;
71 }

References System.destination, and System.source.

Referenced by System.Security.Cryptography.DSA.TryCreateSignatureCore(), System.Security.Cryptography.DSA.TryHashData(), and System.Security.Cryptography.ECDsa.TrySignHashCore().