mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2024-12-22 07:42:47 +01:00
17 lines
553 B
C#
17 lines
553 B
C#
using System.IO;
|
|
using BrotliCalc.Commands.Base;
|
|
using BrotliCalc.Helpers;
|
|
|
|
namespace BrotliCalc.Commands{
|
|
class CmdReserialize : CmdAbstractFileMapper.Compressed{
|
|
public override string FullName => "reserialize";
|
|
public override string ShortName => "rs";
|
|
|
|
protected override string WorkDesc => "Reserialized";
|
|
|
|
protected override void MapFile(BrotliFileGroup group, BrotliFile.Compressed file, FileStream output){
|
|
output.Write(group.SerializeAndValidate(file.Reader).ToByteArray());
|
|
}
|
|
}
|
|
}
|