Exemplo n.º 1
0
            private Class49.Class52.Class58 method_10(Class889 w, ulong handle, Stream data)
            {
                Class49.Class52.Class58 class58 = new Class49.Class52.Class58();
                class58.method_0((ulong)data.Length);
                uint num1 = 0;
                int  num2 = 0;

                for (; (ulong)num1 < class58.TotalDataSize; num1 += class58.PageSize)
                {
                    ulong           num3    = (ulong)(w.Position - this.long_0);
                    Class49.Class56 class56 = new Class49.Class56()
                    {
                        TotalDataSize = class58.TotalDataSize, PageCount = (int)class58.PageCount, PageDataSize = (long)num2 < (long)(class58.PageCount - 1U) ? (ulong)class58.PageSize : (ulong)class58.LastPageSize, PageIndex = num2, PageStartOffset = (ulong)num1
                    };
                    class56.Header.SegmentIndex = this.uint_0;
                    class56.BinaryData          = new Class882(data, (int)class56.PageStartOffset, (int)class56.PageDataSize);
                    class56.Write(this);
                    class58.Pages.Add(new Class49.Class52.Class58.Class59()
                    {
                        SegmentIndex = this.uint_0,
                        Size         = (uint)class56.PageDataSize
                    });
                    this.method_8(new Class49.Class51.Class57()
                    {
                        Offset = num3,
                        Size   = class56.Header.SegmentSize
                    });
                    ++num2;
                }
                return(class58);
            }
Exemplo n.º 2
0
 private void method_9(Class889 w)
 {
     Class49.Class52 class52 = new Class49.Class52();
     class52.Header.SegmentIndex = this.uint_0;
     foreach (KeyValuePair <Enum53, Class560> keyValuePair1 in this.class741_0.RecordTypeTohandleToDataRecord)
     {
         foreach (KeyValuePair <ulong, List <Stream> > keyValuePair2 in (Dictionary <ulong, List <Stream> >)keyValuePair1.Value)
         {
             foreach (Stream data in keyValuePair2.Value)
             {
                 if (data.Length > 262144L)
                 {
                     Class49.Class52.Class58 class58 = this.method_10(w, keyValuePair2.Key, data);
                     class52.method_0(keyValuePair2.Key, (Interface2)class58);
                 }
                 else
                 {
                     Class1068 class1068 = new Class1068()
                     {
                         Stream = data
                     };
                     class52.method_0(keyValuePair2.Key, (Interface2)class1068);
                 }
             }
         }
     }
     this.method_16(w, (Class49)class52);
 }