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"); }
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"); }