mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-06-03 00:58:13 -04:00
28 lines
612 B
C#
28 lines
612 B
C#
namespace AssetStudio
|
|
{
|
|
public class StreamingInfo
|
|
{
|
|
public long offset; //ulong
|
|
public uint size;
|
|
public string path;
|
|
|
|
public StreamingInfo() { }
|
|
|
|
public StreamingInfo(ObjectReader reader)
|
|
{
|
|
var version = reader.version;
|
|
|
|
if (version >= 2020) //2020.1 and up
|
|
{
|
|
offset = reader.ReadInt64();
|
|
}
|
|
else
|
|
{
|
|
offset = reader.ReadUInt32();
|
|
}
|
|
size = reader.ReadUInt32();
|
|
path = reader.ReadAlignedString();
|
|
}
|
|
}
|
|
}
|