Exemplo n.º 1
0
 public RawFieldSpec(AspectType aspectType, string name)
 {
     _type        = aspectType;
     _name        = name;
     _fieldTypeID = 0;
     _isPrimitive = false;
     _isArray     = false;
     _isNArray    = false;
     _isVirtual   = true;
     _indexID     = 0;
 }
Exemplo n.º 2
0
		public RawFieldSpec(AspectType aspectType, string name)
		{
			_type = aspectType;
			_name = name;
			_fieldTypeID = 0;
			_isPrimitive = false;
			_isArray = false;
			_isNArray = false;
			_isVirtual = true;
			_indexID = 0;
		}
Exemplo n.º 3
0
		public RawFieldSpec(AspectType aspectType, string name, int fieldTypeID, byte attribs
			)
		{
			_type = aspectType;
			_name = name;
			_fieldTypeID = fieldTypeID;
			BitMap4 bitmap = new BitMap4(attribs);
			_isPrimitive = bitmap.IsTrue(0);
			_isArray = bitmap.IsTrue(1);
			_isNArray = bitmap.IsTrue(2);
			_isVirtual = false;
			_indexID = 0;
		}
Exemplo n.º 4
0
        public RawFieldSpec(AspectType aspectType, string name, int fieldTypeID, byte attribs
                            )
        {
            _type        = aspectType;
            _name        = name;
            _fieldTypeID = fieldTypeID;
            var bitmap = new BitMap4(attribs);

            _isPrimitive = bitmap.IsTrue(0);
            _isArray     = bitmap.IsTrue(1);
            _isNArray    = bitmap.IsTrue(2);
            _isVirtual   = false;
            _indexID     = 0;
        }
Exemplo n.º 5
0
		protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
			 stream, ByteArrayBuffer reader)
		{
			RawFieldSpec spec = base.ReadSpec(aspectType, stream, reader);
			if (spec == null)
			{
				return null;
			}
			if (spec.IsVirtual())
			{
				return spec;
			}
			int indexID = reader.ReadInt();
			spec.IndexID(indexID);
			return spec;
		}
Exemplo n.º 6
0
        protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
                                                 stream, ByteArrayBuffer reader)
        {
            var spec = base.ReadSpec(aspectType, stream, reader);

            if (spec == null)
            {
                return(null);
            }
            if (spec.IsVirtual())
            {
                return(spec);
            }
            var indexID = reader.ReadInt();

            spec.IndexID(indexID);
            return(spec);
        }
Exemplo n.º 7
0
		protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
			 stream, ByteArrayBuffer reader)
		{
			string name = StringHandler.ReadStringNoDebug(stream.Transaction.Context(), reader
				);
			if (!aspectType.IsFieldMetadata())
			{
				return new RawFieldSpec(aspectType, name);
			}
			if (name.IndexOf(Const4.VirtualFieldPrefix) == 0)
			{
				if (stream._handlers.VirtualFieldByName(name) != null)
				{
					return new RawFieldSpec(aspectType, name);
				}
			}
			int fieldTypeID = reader.ReadInt();
			byte attribs = reader.ReadByte();
			return new RawFieldSpec(aspectType, name, fieldTypeID, attribs);
		}
Exemplo n.º 8
0
        protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
                                                 stream, ByteArrayBuffer reader)
        {
            var name = StringHandler.ReadStringNoDebug(stream.Transaction.Context(), reader
                                                       );

            if (!aspectType.IsFieldMetadata())
            {
                return(new RawFieldSpec(aspectType, name));
            }
            if (name.IndexOf(Const4.VirtualFieldPrefix) == 0)
            {
                if (stream._handlers.VirtualFieldByName(name) != null)
                {
                    return(new RawFieldSpec(aspectType, name));
                }
            }
            var fieldTypeID = reader.ReadInt();
            var attribs     = reader.ReadByte();

            return(new RawFieldSpec(aspectType, name, fieldTypeID, attribs));
        }
Exemplo n.º 9
0
 protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
                                          stream, ByteArrayBuffer reader)
 {
     return(base.ReadSpec(AspectType.ForByte(reader.ReadByte()), stream, reader));
 }
 protected abstract RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
                                          stream, ByteArrayBuffer reader);
Exemplo n.º 11
0
		protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
			 stream, ByteArrayBuffer reader)
		{
			return base.ReadSpec(AspectType.ForByte(reader.ReadByte()), stream, reader);
		}
		protected abstract RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
			 stream, ByteArrayBuffer reader);