コード例 #1
0
        } // Read

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

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

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

        public bool Equals(ConstantCharValueHandle handle)
        {
            return _value == handle._value;
        } // Equals
コード例 #5
0
        } // ToHandle

        internal Handle ToHandle(ConstantCharValueHandle handle)
        {
            return new Handle(handle._value);
        } // ToHandle
コード例 #6
0
        } // GetConstantCharArray

        public ConstantCharValue GetConstantCharValue(ConstantCharValueHandle handle)
        {
            var record = new ConstantCharValue() { _reader = this, _handle = handle };
            var offset = (uint)handle.Offset;
            offset = _streamReader.Read(offset, out record._value);
            return record;
        } // GetConstantCharValue
コード例 #7
0
ファイル: MdBinaryReaderGen.cs プロジェクト: shahid-pk/corert
        } // Read

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