Exemple #1
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);
		}
Exemple #2
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));
        }
Exemple #3
0
 public virtual bool IsFieldMetadata()
 {
     return(_type.IsFieldMetadata());
 }