mirror of
https://github.com/4sval/FModel.git
synced 2026-03-30 21:55:42 -05:00
26 lines
656 B
C#
26 lines
656 B
C#
using System.IO;
|
|
|
|
namespace PakReader.Parsers.Objects
|
|
{
|
|
public readonly struct FPakCompressedBlock
|
|
{
|
|
public readonly long CompressedStart;
|
|
public readonly long CompressedEnd;
|
|
public readonly long Size;
|
|
|
|
internal FPakCompressedBlock(BinaryReader reader)
|
|
{
|
|
CompressedStart = reader.ReadInt64();
|
|
CompressedEnd = reader.ReadInt64();
|
|
Size = CompressedEnd - CompressedStart;
|
|
}
|
|
|
|
internal FPakCompressedBlock(long start, long end)
|
|
{
|
|
CompressedStart = start;
|
|
CompressedEnd = end;
|
|
Size = end - start;
|
|
}
|
|
}
|
|
}
|