mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Reduce more Linq usage
This commit is contained in:
@@ -462,10 +462,7 @@ namespace SabreTools.FileTypes.Archives
|
||||
BinaryWriter sw = new(outputStream);
|
||||
|
||||
// Write standard header and TGZ info
|
||||
byte[] data = TorrentGZHeader
|
||||
.Concat(baseFile.MD5!) // MD5
|
||||
.Concat(baseFile.CRC!) // CRC
|
||||
.ToArray();
|
||||
byte[] data = [.. TorrentGZHeader, .. baseFile.MD5!, .. baseFile.CRC!];
|
||||
sw.Write(data);
|
||||
sw.Write((ulong)(baseFile.Size ?? 0)); // Long size (Unsigned, Mirrored)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user