Example #1
0
 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> >();
 }
Example #2
0
 void IExcelCommand.Write(BinaryWriter w)
 {
     w.Write(TakeY);
     w.Write(SkipX);
     w.Write(SkipY);
     ExcelSerDes.EncodeFunc(w, Group);
     ExcelSerDes.EncodeFunc(w, Cmds);
 }
Example #3
0
 void IExcelCommand.Write(BinaryWriter w)
 {
     ExcelSerDes.EncodeFunc(w, Func);
     ExcelSerDes.EncodeCommands(w, Cmds);
 }
Example #4
0
 void IExcelCommand.Read(BinaryReader r)
 {
     Func = ExcelSerDes.DecodeFunc<IExcelContext, Collection<string>, object, CommandRtn>(r);
     Cmds = ExcelSerDes.DecodeCommands(r);
 }
Example #5
0
 void IExcelCommand.Write(BinaryWriter w)
 {
     w.Write((byte)When);
     ExcelSerDes.EncodeAction(w, Action);
 }
Example #6
0
 void IExcelCommand.Read(BinaryReader r)
 {
     When   = (When)r.ReadByte();
     Action = ExcelSerDes.DecodeAction <IExcelContext>(r);
 }
Example #7
0
 public static IExcelCommand[] Decode(string packed) => ExcelSerDes.Decode(packed.Substring(Stream.Length));
Example #8
0
 public static string Encode(params IExcelCommand[] cmds) => $"{Stream}{ExcelSerDes.Encode(cmds)}";
Example #9
0
 public static string Encode(bool describe, params IExcelCommand[] cmds) => $"{(describe ? ExcelSerDes.Describe(Comment, cmds) : null)}{Stream}{ExcelSerDes.Encode(cmds)}";
Example #10
0
 void IExcelCommand.Read(BinaryReader r)
 {
     When = (When)r.ReadByte();
     Func = ExcelSerDes.DecodeFunc <IExcelContext, Collection <string>, CommandRtn>(r);
     Cmds = ExcelSerDes.DecodeCommands(r);
 }
Example #11
0
 void IExcelCommand.Write(BinaryWriter w)
 {
     ExcelSerDes.EncodeFunc(w, Func);
     w.Write((int)ValueKind);
     ExcelSerDes.EncodeFunc(w, ValueFormat);
 }
Example #12
0
 void IExcelCommand.Read(BinaryReader r)
 {
     Func        = ExcelSerDes.DecodeFunc <IExcelContext, Collection <string>, object, bool>(r);
     ValueKind   = (CellValueKind)r.ReadInt32();
     ValueFormat = ExcelSerDes.DecodeFunc <IExcelContext, string>(r);
 }
Example #13
0
 void IExcelCommand.Describe(StringWriter w, int pad)
 {
     w.WriteLine($"{new string(' ', pad)}PushFrame:"); ExcelSerDes.DescribeCommands(w, pad, Cmds);
 }
Example #14
0
 void IExcelCommand.Read(BinaryReader r)
 {
     Cmds = ExcelSerDes.DecodeCommands(r);
 }
Example #15
0
 void IExcelCommand.Write(BinaryWriter w) => ExcelSerDes.EncodeCommands(w, Cmds);
Example #16
0
 void IExcelCommand.Write(BinaryWriter w)
 {
     w.Write((byte)Headers);
     ExcelSerDes.EncodeFunc(w, Group);
     ExcelSerDes.EncodeFunc(w, Cmds);
 }