void IExcelCommand.Read(BinaryReader r) { Headers = r.ReadByte(); Group = ExcelSerDes.DecodeFunc <IExcelContext, IEnumerable <Collection <string> >, IEnumerable <IGrouping <T, Collection <string> > > >(r); Cmds = ExcelSerDes.DecodeFunc <IExcelContext, object, IExcelCommand[]>(r); _set = new List <Collection <string> >(); }
void IExcelCommand.Write(BinaryWriter w) { w.Write(TakeY); w.Write(SkipX); w.Write(SkipY); ExcelSerDes.EncodeFunc(w, Group); ExcelSerDes.EncodeFunc(w, Cmds); }
void IExcelCommand.Write(BinaryWriter w) { ExcelSerDes.EncodeFunc(w, Func); ExcelSerDes.EncodeCommands(w, Cmds); }
void IExcelCommand.Read(BinaryReader r) { Func = ExcelSerDes.DecodeFunc<IExcelContext, Collection<string>, object, CommandRtn>(r); Cmds = ExcelSerDes.DecodeCommands(r); }
void IExcelCommand.Write(BinaryWriter w) { w.Write((byte)When); ExcelSerDes.EncodeAction(w, Action); }
void IExcelCommand.Read(BinaryReader r) { When = (When)r.ReadByte(); Action = ExcelSerDes.DecodeAction <IExcelContext>(r); }
public static IExcelCommand[] Decode(string packed) => ExcelSerDes.Decode(packed.Substring(Stream.Length));
public static string Encode(params IExcelCommand[] cmds) => $"{Stream}{ExcelSerDes.Encode(cmds)}";
public static string Encode(bool describe, params IExcelCommand[] cmds) => $"{(describe ? ExcelSerDes.Describe(Comment, cmds) : null)}{Stream}{ExcelSerDes.Encode(cmds)}";
void IExcelCommand.Read(BinaryReader r) { When = (When)r.ReadByte(); Func = ExcelSerDes.DecodeFunc <IExcelContext, Collection <string>, CommandRtn>(r); Cmds = ExcelSerDes.DecodeCommands(r); }
void IExcelCommand.Write(BinaryWriter w) { ExcelSerDes.EncodeFunc(w, Func); w.Write((int)ValueKind); ExcelSerDes.EncodeFunc(w, ValueFormat); }
void IExcelCommand.Read(BinaryReader r) { Func = ExcelSerDes.DecodeFunc <IExcelContext, Collection <string>, object, bool>(r); ValueKind = (CellValueKind)r.ReadInt32(); ValueFormat = ExcelSerDes.DecodeFunc <IExcelContext, string>(r); }
void IExcelCommand.Describe(StringWriter w, int pad) { w.WriteLine($"{new string(' ', pad)}PushFrame:"); ExcelSerDes.DescribeCommands(w, pad, Cmds); }
void IExcelCommand.Read(BinaryReader r) { Cmds = ExcelSerDes.DecodeCommands(r); }
void IExcelCommand.Write(BinaryWriter w) => ExcelSerDes.EncodeCommands(w, Cmds);
void IExcelCommand.Write(BinaryWriter w) { w.Write((byte)Headers); ExcelSerDes.EncodeFunc(w, Group); ExcelSerDes.EncodeFunc(w, Cmds); }