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

◆ GetNonNullPinnableReference() [1/2]

static unsafe ref readonly byte System.Security.Cryptography.AeadCommon.GetNonNullPinnableReference ( ReadOnlySpan< byte > buffer)
inlinestaticprivate

Definition at line 103 of file AeadCommon.cs.

104 {
105 if (buffer.Length == 0)
106 {
107 return ref Unsafe.AsRef<byte>((void*)1);
108 }
109 return ref MemoryMarshal.GetReference(buffer);
110 }

References System.buffer.

Referenced by System.Security.Cryptography.AeadCommon.Decrypt(), and System.Security.Cryptography.AeadCommon.Encrypt().