mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 20:15:00 +03:00
Refactoring Project
This commit is contained in:
@@ -366,6 +366,7 @@ namespace ServiceLib.Common
|
||||
|
||||
public static bool IsBase64String(string plainText)
|
||||
{
|
||||
if(plainText.IsNullOrEmpty()) return false;
|
||||
var buffer = new Span<byte>(new byte[plainText.Length]);
|
||||
return Convert.TryFromBase64String(plainText, buffer, out int _);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user