public BooleanMemberEntry(IntegerPrimitiveMemberEntry entry) : base(entry) { _trueValue = 1; _falseValue = 0; _primitiveEntry = entry; }
/// <summary> /// /// </summary> /// <param name="baseEntry"></param> public FixedLengthPrimitiveArrayMemberEntry(IntegerPrimitiveMemberEntry baseEntry) : base(baseEntry) { _intEntry = baseEntry; _length = 0; }
public EnumMemberEntry(EnumParserType type, IntegerPrimitiveMemberEntry entry) : base(entry) { EnumType = type; _primitiveEntry = entry; }
public ReferenceLengthPrimitiveArrayMemberEntry(IntegerPrimitiveMemberEntry entry) : base(entry) { _reference = new MemberEntryReference(this, typeof(IntegerPrimitiveMemberEntry), typeof(StringMemberEntry)); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Name of entry</param> /// <param name="baseType">Base type of entry</param> public ReadToEndPrimitiveArrayMemberEntry(IntegerPrimitiveMemberEntry baseEntry) : base(baseEntry) { _intEntry = baseEntry; _trailingLength = "0"; }
private void AddIntegerType(string type) { if (_type != null) { Type t = Type.GetType(type); if (t == null) { t = typeof(DataReader).Assembly.GetType(type); } if (t != null) { MemberEntry entry = new IntegerPrimitiveMemberEntry(GetMemberName(), t, _type.DefaultEndian); _type.AddMember(entry); AddMember(entry, true); } } }