跳到主要内容
版本:3.0.x

Interface IBundleStreamDecryptor

基于流的资源包解密器。 通过提供解密流实现流式加载,适用于大文件场景。

Assembly: YooAsset.dll
View Source
Declaration
public interface IBundleStreamDecryptor : IBundleDecryptor

Methods

GetBufferSize(BundleDecryptArgs)

获取流式读取时使用的缓冲区大小(字节)

View Source
Declaration
int GetBufferSize(BundleDecryptArgs args)
Returns

System.Int32: 建议的缓冲区字节数

Parameters
TypeNameDescription
YooAsset.BundleDecryptArgsargs解密操作的输入参数

CreateDecryptionStream(BundleDecryptArgs)

创建用于解密读取的流实例

View Source
Declaration
Stream CreateDecryptionStream(BundleDecryptArgs args)
Returns

System.IO.Stream: 可供 AssetBundle 加载使用的解密流

Parameters
TypeNameDescription
YooAsset.BundleDecryptArgsargs解密操作的输入参数