コード例 #1
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantInt32ValueHandle handle)
        {
            uint value;
            offset = reader.DecodeUnsigned(offset, out value);
            handle = new ConstantInt32ValueHandle((int)value);
            handle._Validate();
            return offset;
        } // Read
コード例 #2
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantInt32ValueHandle[] values)
        {
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            if (count == 0)
            {
                values = s_emptyConstantInt32ValueHandleArray;
            }
            else
            {
                values = new ConstantInt32ValueHandle[count];
                for (uint i = 0; i < count; ++i)
                {
                    ConstantInt32ValueHandle tmp;
                    offset = reader.Read(offset, out tmp);
                    values[i] = tmp;
                }
            }
            return offset;
        } // Read
コード例 #3
0
        } // IsNull

        internal bool IsNull(ConstantInt32ValueHandle handle)
        {
            return (handle._value & 0x00FFFFFF) == 0;
        } // IsNull
コード例 #4
0
        } // ToHandle

        internal Handle ToHandle(ConstantInt32ValueHandle handle)
        {
            return new Handle(handle._value);
        } // ToHandle
コード例 #5
0
        } // GetConstantInt32Array

        public ConstantInt32Value GetConstantInt32Value(ConstantInt32ValueHandle handle)
        {
            var record = new ConstantInt32Value() { _reader = this, _handle = handle };
            var offset = (uint)handle.Offset;
            offset = _streamReader.Read(offset, out record._value);
            return record;
        } // GetConstantInt32Value
コード例 #6
0
        } // Equals

        public bool Equals(ConstantInt32ValueHandle handle)
        {
            return _value == handle._value;
        } // Equals
コード例 #7
0
ファイル: MdBinaryReaderGen.cs プロジェクト: shahid-pk/corert
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantInt32ValueHandle[] values)
        {
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            #if !NETFX_45
            if (count == 0)
            {
                values = Array.Empty<ConstantInt32ValueHandle>();
            }
            else
            #endif
            {
                values = new ConstantInt32ValueHandle[count];
                for (uint i = 0; i < count; ++i)
                {
                    ConstantInt32ValueHandle tmp;
                    offset = reader.Read(offset, out tmp);
                    values[i] = tmp;
                }
            }
            return offset;
        } // Read