4 implementations of IsInvalidLength
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (2)
1473
public bool
IsInvalidLength
(int bufferLength) => bufferLength % 4 != 0; // only decode input if it is a multiple of 4
1695
public bool
IsInvalidLength
(int bufferLength) => bufferLength % 4 != 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (2)
368
public bool
IsInvalidLength
(int bufferLength) => (bufferLength & 3) == 1; // One byte cannot be decoded completely
512
public bool
IsInvalidLength
(int bufferLength) => default(Base64UrlDecoderByte).IsInvalidLength(bufferLength);
1 reference to IsInvalidLength
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
352
if (decoder.
IsInvalidLength
(buffer.Length))