mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
20 lines
412 B
C#
20 lines
412 B
C#
using AssetRipper.IO.Endian;
|
|
using AssetRipper.IO.Files.SerializedFiles;
|
|
|
|
namespace AssetRipper.Assets.IO.Reading;
|
|
|
|
public static class EndianSpanReadableExtensions
|
|
{
|
|
public static void Read(this IEndianSpanReadable asset, ref EndianSpanReader reader, TransferInstructionFlags flags)
|
|
{
|
|
if (flags.IsRelease())
|
|
{
|
|
asset.ReadRelease(ref reader);
|
|
}
|
|
else
|
|
{
|
|
asset.ReadEditor(ref reader);
|
|
}
|
|
}
|
|
}
|