Example #1
0
 public CtfTrace(CtfPropertyBag bag)
 {
     Major     = bag.GetShort("major");
     Minor     = bag.GetShort("minor");
     UUID      = new Guid(bag.GetString("uuid"));
     ByteOrder = bag.GetString("byte_order");
     Header    = bag.GetStruct("packet.header");
 }
Example #2
0
 public CtfInteger(CtfPropertyBag bag)
     : base(CtfTypes.Integer)
 {
     Size     = bag.GetShort("size");
     _align   = bag.GetShortOrNull("align") ?? 8;
     Signed   = bag.GetBoolean("signed");
     Encoding = bag.GetString("encoding") ?? "none";
     Base     = bag.GetShortOrNull("base") ?? 10;
     Map      = bag.GetString("map");
 }