Esempio n. 1
0
 protected bool Parse <T>(string Field, ref Seq4Ref <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, 4);
     }
     return(true);
 }
Esempio n. 2
0
 protected bool ReadSeq <T>(BinaryReader stream, ref Seq4Ref <T> v, CVSReader.ValueParse <T> parse)
 {
     lock (CVSReader._seqIndex)
     {
         int  indexOffset = CVSReader.indexIndex;
         int  num         = 0;
         bool flag        = this.Parse <T>(stream, parse, 4, ref indexOffset, ref num);
         v.indexOffset = indexOffset;
         if (flag)
         {
             CVSReader.indexBuffer[CVSReader.indexIndex++] = num;
         }
     }
     return(true);
 }