示例#1
0
 public BooleanMemberEntry(IntegerPrimitiveMemberEntry entry)
     : base(entry)
 {
     _trueValue      = 1;
     _falseValue     = 0;
     _primitiveEntry = entry;
 }
示例#2
0
 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;
 }
示例#4
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>
 /// 
 /// </summary>
 /// <param name="baseEntry"></param>
 public FixedLengthPrimitiveArrayMemberEntry(IntegerPrimitiveMemberEntry baseEntry)
     : base(baseEntry)
 {
     _intEntry = baseEntry;
     _length = 0;
 }
 /// <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);
                }
            }
        }
 /// <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";
 }
 public ReferenceLengthPrimitiveArrayMemberEntry(IntegerPrimitiveMemberEntry entry)
     : base(entry)
 {
     _reference = new MemberEntryReference(this, typeof(IntegerPrimitiveMemberEntry), typeof(StringMemberEntry));
 }
示例#11
0
 public EnumMemberEntry(EnumParserType type, IntegerPrimitiveMemberEntry entry)
     : base(entry)
 {
     EnumType = type;
     _primitiveEntry = entry;
 }