Blame view

netcore/src/Infrastructure/NCC.Pay/NCC.Security/Base64Util.cs 304 Bytes
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
  using System;
  
  namespace NCC.Core.Pay.Security
  {
      public static class Base64Util
      {
          public static bool IsBase64String(string str)
          {
              Span<byte> buffer = stackalloc byte[str.Length];
              return Convert.TryFromBase64String(str, buffer, out _);
          }
      }
  }