Esempio n. 1
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantSByteArrayHandle handle)
        {
            uint value;
            offset = reader.DecodeUnsigned(offset, out value);
            handle = new ConstantSByteArrayHandle((int)value);
            handle._Validate();
            return offset;
        } // Read
Esempio n. 2
0
        } // Read

        public static uint Read(this NativeReader reader, uint offset, out ConstantSByteArrayHandle[] values)
        {
            uint count;
            offset = reader.DecodeUnsigned(offset, out count);
            if (count == 0)
            {
                values = s_emptyConstantSByteArrayHandleArray;
            }
            else
            {
                values = new ConstantSByteArrayHandle[count];
                for (uint i = 0; i < count; ++i)
                {
                    ConstantSByteArrayHandle tmp;
                    offset = reader.Read(offset, out tmp);
                    values[i] = tmp;
                }
            }
            return offset;
        } // Read
Esempio n. 3
0
        } // IsNull

        internal bool IsNull(ConstantSByteArrayHandle handle)
        {
            return (handle._value & 0x00FFFFFF) == 0;
        } // IsNull
Esempio n. 4
0
        } // ToHandle

        internal Handle ToHandle(ConstantSByteArrayHandle handle)
        {
            return new Handle(handle._value);
        } // ToHandle
Esempio n. 5
0
        } // GetConstantReferenceValue

        public ConstantSByteArray GetConstantSByteArray(ConstantSByteArrayHandle handle)
        {
            var record = new ConstantSByteArray() { _reader = this, _handle = handle };
            var offset = (uint)handle.Offset;
            offset = _streamReader.Read(offset, out record._value);
            return record;
        } // GetConstantSByteArray
Esempio n. 6
0
        } // Equals

        public bool Equals(ConstantSByteArrayHandle handle)
        {
            return _value == handle._value;
        } // Equals
Esempio n. 7
0
        } // Read

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