Esempio n. 1
0
 public static void ParseByElementType(byte[] buffer, ref int pos, IPropertyProcess process)
 {
     var property = (UInt32)ParseSerialize.ParseInt32(buffer, pos);
     ElementTypeProcessBase elementTypeProcess = null;
     if (MetaProperty.JudgePropIsMetaProp(property))
     {
         elementTypeProcess = new MetaPropertyProcess(process);
     }
     else if (Marker.JudgeIsMarker(property))
     {
         elementTypeProcess = new MarkerProcess(process);
     }
     else
     {
         elementTypeProcess = new PropValueProcess(process);
     }
     elementTypeProcess.Parse(buffer, ref pos);
 }
Esempio n. 2
0
        public static void ParseByElementType(byte[] buffer, ref int pos, IPropertyProcess process)
        {
            var property = (UInt32)ParseSerialize.ParseInt32(buffer, pos);
            ElementTypeProcessBase elementTypeProcess = null;

            if (MetaProperty.JudgePropIsMetaProp(property))
            {
                elementTypeProcess = new MetaPropertyProcess(process);
            }
            else if (Marker.JudgeIsMarker(property))
            {
                elementTypeProcess = new MarkerProcess(process);
            }
            else
            {
                elementTypeProcess = new PropValueProcess(process);
            }
            elementTypeProcess.Parse(buffer, ref pos);
        }
Esempio n. 3
0
 public PropValueProcess(IPropertyProcess process) : base(process)
 {
 }
Esempio n. 4
0
 public MetaPropertyProcess(IPropertyProcess process) : base(process)
 {
 }
Esempio n. 5
0
 public MarkerProcess(IPropertyProcess process) : base(process)
 {
 }
Esempio n. 6
0
 protected ElementTypeProcessBase(IPropertyProcess process)
 {
     _process = process;
 }
Esempio n. 7
0
 public MetaPropertyProcess(IPropertyProcess process)
     : base(process)
 {
 }
Esempio n. 8
0
 public MarkerProcess(IPropertyProcess process)
     : base(process)
 {
 }
Esempio n. 9
0
 protected ElementTypeProcessBase(IPropertyProcess process)
 {
     _process = process;
 }
Esempio n. 10
0
 public PropValueProcess(IPropertyProcess process)
     : base(process)
 {
 }