ReadBytes() public method

public ReadBytes ( int length ) : byte[]
length int
return byte[]
Esempio n. 1
0
        private void ReadPdbHeap()
        {
            PdbHeap    pdbHeap    = image.PdbHeap;
            ByteBuffer byteBuffer = new ByteBuffer(pdbHeap.data);

            pdbHeap.Id                  = byteBuffer.ReadBytes(20);
            pdbHeap.EntryPoint          = byteBuffer.ReadUInt32();
            pdbHeap.TypeSystemTables    = byteBuffer.ReadInt64();
            pdbHeap.TypeSystemTableRows = new uint[58];
            for (int i = 0; i < 58; i++)
            {
                Table table = (Table)i;
                if (pdbHeap.HasTable(table))
                {
                    pdbHeap.TypeSystemTableRows[i] = byteBuffer.ReadUInt32();
                }
            }
        }
Esempio n. 2
0
        void ReadPdbHeap()
        {
            var heap = image.PdbHeap;

            var buffer = new ByteBuffer(heap.data);

            heap.Id                  = buffer.ReadBytes(20);
            heap.EntryPoint          = buffer.ReadUInt32();
            heap.TypeSystemTables    = buffer.ReadInt64();
            heap.TypeSystemTableRows = new uint [Mixin.TableCount];

            for (int i = 0; i < Mixin.TableCount; i++)
            {
                var table = (Table)i;
                if (!heap.HasTable(table))
                {
                    continue;
                }

                heap.TypeSystemTableRows [i] = buffer.ReadUInt32();
            }
        }
Esempio n. 3
0
        void ReadPdbHeap()
        {
            var heap = image.PdbHeap;

            var buffer = new ByteBuffer (heap.data);

            heap.Id = buffer.ReadBytes (20);
            heap.EntryPoint = buffer.ReadUInt32 ();
            heap.TypeSystemTables = buffer.ReadInt64 ();
            heap.TypeSystemTableRows = new uint [Mixin.TableCount];

            for (int i = 0; i < Mixin.TableCount; i++) {
                var table = (Table) i;
                if (!heap.HasTable (table))
                    continue;

                heap.TypeSystemTableRows [i] = buffer.ReadUInt32 ();
            }
        }