Esempio n. 1
0
 public UniTask <TData> LoadAsync <TData>(string fileName)
 {
     return(_fileProvider.ReadAsync(GetFilePath(fileName))
            .ContinueWith(bytes => _serializationProvider.DeserializeAsync <TData>(bytes)));
 }
 public UniTask <T> DeserializeAsync <T>(byte[] data) =>
 _dataTransform.ReverseAsync(data)
 .ContinueWith(bytes => _baseProvider.DeserializeAsync <T>(bytes));
Esempio n. 3
0
 public UniTask <T> GetDataAsync <T>(string key) =>
 _serializationProvider.DeserializeAsync <T>(GetBytes(key));