예제 #1
0
 protected bool Parse <T>(string Field, ref Seq3Ref <T> b, CVSReader.ValueParse <T> parse, string post)
 {
     if (Field.Length == 0)
     {
         b.indexOffset = 0;
         return(true);
     }
     lock (CVSReader._seqIndex)
     {
         int num = 0;
         b.indexOffset = this.Parse <T>(Field, ref num, parse, post, 3);
     }
     return(true);
 }
예제 #2
0
 protected bool ReadSeq <T>(BinaryReader stream, ref Seq3Ref <T> v, CVSReader.ValueParse <T> parse)
 {
     lock (CVSReader._seqIndex)
     {
         int  indexOffset = CVSReader.indexIndex;
         int  num         = 0;
         bool flag        = this.Parse <T>(stream, parse, 3, ref indexOffset, ref num);
         v.indexOffset = indexOffset;
         if (flag)
         {
             CVSReader.indexBuffer[CVSReader.indexIndex++] = num;
         }
     }
     return(true);
 }