Пример #1
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantInt64ArrayHandle handle)
        {
            uint value;
            offset = reader.DecodeUnsigned(offset, out value);
            handle = new ConstantInt64ArrayHandle((int)value);
            handle._Validate();
            return offset;
        } // Read
Пример #2
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantInt64ArrayHandle[] values)
        {
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            if (count == 0)
            {
                values = s_emptyConstantInt64ArrayHandleArray;
            }
            else
            {
                values = new ConstantInt64ArrayHandle[count];
                for (uint i = 0; i < count; ++i)
                {
                    ConstantInt64ArrayHandle tmp;
                    offset = reader.Read(offset, out tmp);
                    values[i] = tmp;
                }
            }
            return offset;
        } // Read
Пример #3
0
        } // IsNull

        internal bool IsNull(ConstantInt64ArrayHandle handle)
        {
            return (handle._value & 0x00FFFFFF) == 0;
        } // IsNull
Пример #4
0
        } // ToHandle

        internal Handle ToHandle(ConstantInt64ArrayHandle handle)
        {
            return new Handle(handle._value);
        } // ToHandle
Пример #5
0
        } // GetConstantInt32Value

        public ConstantInt64Array GetConstantInt64Array(ConstantInt64ArrayHandle handle)
        {
            var record = new ConstantInt64Array() { _reader = this, _handle = handle };
            var offset = (uint)handle.Offset;
            offset = _streamReader.Read(offset, out record._value);
            return record;
        } // GetConstantInt64Array
Пример #6
0
        } // Equals

        public bool Equals(ConstantInt64ArrayHandle handle)
        {
            return _value == handle._value;
        } // Equals
Пример #7
0
        } // Read

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