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

◆ GetOutputSize()

int System.Security.Cryptography.FromBase64Transform.GetOutputSize ( int bytesToTransform,
Span< byte > tmpBuffer )
inlineprivate

Definition at line 129 of file FromBase64Transform.cs.

130 {
131 int num = Base64.GetMaxDecodedFromUtf8Length(bytesToTransform);
132 int length = tmpBuffer.Length;
133 if (tmpBuffer[length - 2] == 61)
134 {
135 num--;
136 }
137 if (tmpBuffer[length - 1] == 61)
138 {
139 num--;
140 }
141 return num;
142 }
static int GetMaxDecodedFromUtf8Length(int length)
Definition Base64.cs:214
int Length
Definition Span.cs:70

References System.Buffers.Text.Base64.GetMaxDecodedFromUtf8Length(), System.length, and System.Span< T >.Length.

Referenced by System.Security.Cryptography.FromBase64Transform.TransformFinalBlock().