Class Util
- Namespace
- TAssetBundle
- Assembly
- TAssetBundle.dll
- Inheritance
-
Util
- Inherited Members
-
Methods
BytesToHexString(byte[])
public static string BytesToHexString(byte[] bytes)
Parameters
bytes
byte[]
Returns
- string
ClearCachedAssets()
public static void ClearCachedAssets()
ClearCachedRemoteCatalogs()
public static void ClearCachedRemoteCatalogs()
Compress(byte[])
public static byte[] Compress(byte[] inputData)
Parameters
inputData
byte[]
Returns
- byte[]
CreateDirectoryFromFilePath(string)
public static void CreateDirectoryFromFilePath(string filePath)
Parameters
filePath
string
Decompress(byte[])
public static byte[] Decompress(byte[] inputData)
Parameters
inputData
byte[]
Returns
- byte[]
DecryptRijndael(byte[], byte[], byte[])
public static byte[] DecryptRijndael(byte[] bytes, byte[] key, byte[] iv)
Parameters
bytes
byte[]
key
byte[]
iv
byte[]
Returns
- byte[]
EncryptRijndael(byte[], byte[], byte[])
public static byte[] EncryptRijndael(byte[] bytes, byte[] key, byte[] iv)
Parameters
bytes
byte[]
key
byte[]
iv
byte[]
Returns
- byte[]
GetAssetBundleName(string, string)
public static string GetAssetBundleName(string assetBundleName, string hash)
Parameters
assetBundleName
string
hash
string
Returns
- string
GetAssetBundleName(string, string, bool)
public static string GetAssetBundleName(string assetBundleName, string hash, bool withHash)
Parameters
assetBundleName
string
hash
string
withHash
bool
Returns
- string
GetDataPath(string)
public static string GetDataPath(string relativePath = "")
Parameters
relativePath
string
Returns
- string
GetMD5Hash(byte[])
public static string GetMD5Hash(byte[] bytes)
Parameters
bytes
byte[]
Returns
- string
GetMD5HashFromFile(string)
public static string GetMD5HashFromFile(string filePath)
Parameters
filePath
string
Returns
- string
GetMD5HashFromString(string)
public static string GetMD5HashFromString(string inputString)
Parameters
inputString
string
Returns
- string
GetSHA256HashFromString(string)
public static byte[] GetSHA256HashFromString(string inputString)
Parameters
inputString
string
Returns
- byte[]