GameDecryptionServices.cs 661 B

1234567891011121314151617181920212223242526272829
  1. using System.IO;
  2. namespace YooAsset
  3. {
  4. public class GameDecryptionServices : IDecryptionServices
  5. {
  6. public ulong LoadFromFileOffset(DecryptFileInfo fileInfo)
  7. {
  8. return 30;
  9. }
  10. public byte[] LoadFromMemory(DecryptFileInfo fileInfo)
  11. {
  12. // 如果没有内存加密方式,可以返回空
  13. throw null;
  14. }
  15. public Stream LoadFromStream(DecryptFileInfo fileInfo)
  16. {
  17. // 如果没有流加密方式,可以返回空
  18. throw null;
  19. }
  20. public uint GetManagedReadBufferSize()
  21. {
  22. return 1024;
  23. }
  24. }
  25. }