示例#1
0
 public s_cache_language_pack(TI.Definition parent)
 {
     parent.Add(new TI.Pad(
                    4      // Index runtime hashing handle
                    +
                    4      // Table runtime hashing handle
                    ));
     parent.Add(Count       = new TI.LongInteger());
     parent.Add(Size        = new TI.LongInteger());
     parent.Add(OffsetIndex = new TI.LongInteger());
     parent.Add(OffsetTable = new TI.LongInteger());
     parent.Add(new TI.Skip(20));             // index SHA1 hash
     parent.Add(new TI.Skip(20));             // strings SHA1 hash
     parent.Add(new TI.Pad(1 + 3));
 }
        public CacheFileLanguagePackResourceGen3(TI.Definition parent) : this()
        {
            if (parent == null)
            {
                return;
            }

            parent.Add(new TI.Pad(
                           4      // Index runtime hashing handle
                           +
                           4      // Table runtime hashing handle
                           ));
            parent.Add(Count);
            parent.Add(Size);
            parent.Add(OffsetReferences);
            parent.Add(OffsetStrings);
            parent.Add(ReferencesHash);          // index SHA1 hash
            parent.Add(StringsHash);             // strings SHA1 hash
            parent.Add(new TI.Pad(1 + 3));
        }
 /// <summary>
 /// Initialize the language pack to a tag definition or as a stand-alone
 /// </summary>
 /// <param name="parent"></param>
 public CacheFileLanguagePackResourceGen2(TI.Definition parent)
 {
     if (parent != null)
     {
         parent.Add(new TI.Pad(4 + 4));                 // runtime pointers
         // s_cache_unicode_string_reference* references_buffer
         // byte* strings_buffer
         parent.Add(Count);
         parent.Add(Size);
         parent.Add(OffsetReferences);
         parent.Add(OffsetStrings);
         parent.Add(new TI.Pad(1 + 3));
     }
 }
示例#4
0
        /// <summary>
        /// Initialize the language pack to a tag definition or as a stand-alone
        /// </summary>
        /// <param name="parent"></param>
        public s_cache_language_pack(TI.Definition parent)
        {
            Count            = new TI.LongInteger();
            Size             = new TI.LongInteger();
            OffsetReferences = new TI.LongInteger();
            OffsetStrings    = new TI.LongInteger();

            if (parent != null)
            {
                parent.Add(new TI.Pad(4 + 4));                 // runtime pointers
                // s_cache_unicode_string_reference* references_buffer
                // byte* strings_buffer
                parent.Add(Count);
                parent.Add(Size);
                parent.Add(OffsetReferences);
                parent.Add(OffsetStrings);
                parent.Add(new TI.Pad(1 + 3));
            }
        }