Exemple #1
0
 public void AddDslInfo(DslInfo data)
 {
     mDslInfos.Add(data);
 }
Exemple #2
0
 public void CopyFrom(DslInfo other)
 {
     base.CopyFrom((StatementData)other);
     mLoaded = other.mLoaded;
     mResourceName = other.mResourceName;
 }
Exemple #3
0
 internal static List<DslInfo> readBinary(byte[] bytes, List<string> identifiers)
 {
     List<DslInfo> infos = new List<DslInfo>();
     int curCodeIndex = 0;
     int curIdIndex = 0;
     while (curCodeIndex < bytes.Length) {
         while (curCodeIndex < bytes.Length && bytes[curCodeIndex] != (byte)DslBinaryCode.BeginStatement)
             ++curCodeIndex;
         if (curCodeIndex < bytes.Length) {
             DslInfo info = new DslInfo();
             readBinary(bytes, ref curCodeIndex, identifiers, ref curIdIndex, (StatementData)info);
             if (info.IsValid()) {
                 info.SetLoaded(true);
                 infos.Add(info);
             }
         }
     }
     return infos;
 }