1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-12-22 16:42:46 +01:00
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());
}
}
}