Home
last modified time | relevance | path

Searched refs:GetMaxEncodedToUtf8Length (Results 1 – 5 of 5) sorted by relevance

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/Base64/
H A DBase64EncoderUnitTests.cs24 … Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(sourceBytes.Length)]; in BasicEncodingAndDecoding()
54 Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(source.Length)]; in BasicEncoding()
66 Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(source.Length)]; in EncodeEmptySpan()
104 Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(source.Length)]; in BasicEncodingWithFinalBlockFalse()
130 Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(source.Length)]; in BasicEncodingWithFinalBlockFalseKnownInput()
155 Span<byte> encodedBytes = new byte[Base64.GetMaxEncodedToUtf8Length(source.Length)]; in BasicEncodingWithFinalBlockTrueKnownInput()
190 int requiredSize = Base64.GetMaxEncodedToUtf8Length(source.Length); in EncodingOutputTooSmallRetry()
218 Assert.Equal(expected[i], Base64.GetMaxEncodedToUtf8Length(input[i])); in GetMaxEncodedLength()
222 … Assert.Throws<ArgumentOutOfRangeException>(() => Base64.GetMaxEncodedToUtf8Length(1610612734)); in GetMaxEncodedLength()
226 Assert.Throws<ArgumentOutOfRangeException>(() => Base64.GetMaxEncodedToUtf8Length(-1)); in GetMaxEncodedLength()
[all …]
H A DBase64DecoderUnitTests.cs414 Span<byte> buffer = new byte[Base64.GetMaxEncodedToUtf8Length(sourceBytes.Length)]; in EncodeAndDecodeInPlace()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/tests/Performance/
H A DPerf.Base64EncodeDecode.cs23 Span<byte> destination = new byte[Base64.GetMaxEncodedToUtf8Length(numberOfBytes)]; in Base64Encode()
48 Span<byte> destination = new byte[Base64.GetMaxEncodedToUtf8Length(numberOfBytes) - 1]; in Base64EncodeDestinationTooSmall()
69 var destination = new char[Base64.GetMaxEncodedToUtf8Length(numberOfBytes)]; in Base64EncodeBaseline()
90 Span<byte> encoded = new byte[Base64.GetMaxEncodedToUtf8Length(numberOfBytes)]; in Base64Decode()
116 Span<byte> encoded = new byte[Base64.GetMaxEncodedToUtf8Length(numberOfBytes)]; in Base64DecodeDetinationTooSmall()
161 int length = Base64.GetMaxEncodedToUtf8Length(numberOfBytes); in Base64EncodeInPlace()
190 int length = Base64.GetMaxEncodedToUtf8Length(numberOfBytes); in Base64EncodeInPlaceOnce()
219 int length = Base64.GetMaxEncodedToUtf8Length(numberOfBytes); in Base64DecodeInPlace()
247 int length = Base64.GetMaxEncodedToUtf8Length(numberOfBytes); in Base64DecodeInPlaceOnce()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/src/System/Buffers/Text/
H A DBase64Encoder.cs43 … if (srcLength <= MaximumEncodeLength && destLength >= GetMaxEncodedToUtf8Length(srcLength)) in EncodeToUtf8()
109 public static int GetMaxEncodedToUtf8Length(int length) in GetMaxEncodedToUtf8Length() method in System.Buffers.Text.Base64
134 int encodedLength = GetMaxEncodedToUtf8Length(dataLength); in EncodeToUtf8InPlace()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Memory/ref/
H A DSystem.Memory.cs358 public static int GetMaxEncodedToUtf8Length(int length) { throw null; } in GetMaxEncodedToUtf8Length() method in System.Buffers.Text.Base64