1
0
Fork 0
Brotli-Builder/BrotliCalc/Commands/CmdRebuild.cs

18 lines
601 B
C#

using System.IO;
using BrotliCalc.Commands.Base;
using BrotliCalc.Helpers;
using BrotliImpl.Transformers;
namespace BrotliCalc.Commands{
class CmdRebuild : CmdAbstractFileMapper.Compressed{
public override string FullName => "rebuild";
public override string ShortName => "rb";
protected override string WorkDesc => "Rebuilt";
protected override void MapFile(BrotliFileGroup group, BrotliFile.Compressed file, FileStream output){
output.Write(group.SerializeAndValidate(file.Transforming(new TransformRebuild())).ToByteArray());
}
}
}