Пример #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);
 }
Пример #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);
        }
Пример #3
0
 public PropValueProcess(IPropertyProcess process) : base(process)
 {
 }
Пример #4
0
 public MetaPropertyProcess(IPropertyProcess process) : base(process)
 {
 }
Пример #5
0
 public MarkerProcess(IPropertyProcess process) : base(process)
 {
 }
Пример #6
0
 protected ElementTypeProcessBase(IPropertyProcess process)
 {
     _process = process;
 }
Пример #7
0
 public MetaPropertyProcess(IPropertyProcess process)
     : base(process)
 {
 }
Пример #8
0
 public MarkerProcess(IPropertyProcess process)
     : base(process)
 {
 }
Пример #9
0
 protected ElementTypeProcessBase(IPropertyProcess process)
 {
     _process = process;
 }
Пример #10
0
 public PropValueProcess(IPropertyProcess process)
     : base(process)
 {
 }