1234567891011121314151617181920212223242526272829 |
- using System.IO;
- namespace YooAsset
- {
- public class GameDecryptionServices : IDecryptionServices
- {
- public ulong LoadFromFileOffset(DecryptFileInfo fileInfo)
- {
- return 30;
- }
- public byte[] LoadFromMemory(DecryptFileInfo fileInfo)
- {
- // 如果没有内存加密方式,可以返回空
- throw null;
- }
- public Stream LoadFromStream(DecryptFileInfo fileInfo)
- {
- // 如果没有流加密方式,可以返回空
- throw null;
- }
- public uint GetManagedReadBufferSize()
- {
- return 1024;
- }
- }
- }
|