Class StashUtils
Declaration
public static class StashUtils
Fields
StashListKey
Declaration
public const string StashListKey = "stash_filelist"
Methods
Serialize<T>(T)
Declaration
public static byte[] Serialize<T>(T value)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
<T> | value |
Type Parameters
T
Deserialize<T>(byte[])
Declaration
public static T Deserialize<T>(byte[] bytes)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |
Type Parameters
T
ReadFromDisk(string)
Declaration
public static byte[] ReadFromDisk(string path)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.String | path |
ReadFromDiskAsync(string)
Declaration
public static Task<byte[]> ReadFromDiskAsync(string path)
Returns
System.Threading.Tasks.Task<System.Byte[]>
Parameters
Type | Name |
---|---|
System.String | path |
AddOrCreate<T>(Hashtable, string, T)
Declaration
public static void AddOrCreate<T>(this Hashtable hashtable, string key, T value)
Parameters
Type | Name |
---|---|
System.Collections.Hashtable | hashtable |
System.String | key |
<T> | value |
Type Parameters
T
GetPersistentPath(string)
Declaration
public static string GetPersistentPath(string filename)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | filename |