Example #1
0
        internal override void Save(NativeWriter writer)
        {
            NativeWriter.TypeSignatureCompressor compressor = new NativeWriter.TypeSignatureCompressor(writer);

            writer.WriteUnsigned((uint)TypeSignatureKind.External | (_externalTypeId << 4));

            compressor.Pack(this);
        }
Example #2
0
        internal override void Save(NativeWriter writer)
        {
            NativeWriter.TypeSignatureCompressor compressor = new NativeWriter.TypeSignatureCompressor(writer);

            writer.WriteUnsigned((uint)TypeSignatureKind.Modifier | ((uint)_modifier << 4));
            _param.Save(writer);

            compressor.Pack(this);
        }
Example #3
0
        internal override void Save(NativeWriter writer)
        {
            NativeWriter.TypeSignatureCompressor compressor = new NativeWriter.TypeSignatureCompressor(writer);

            writer.WriteUnsigned((uint)TypeSignatureKind.Instantiation | ((uint)_args.Length << 4));
            _typeDef.Save(writer);
            for (int iArg = 0; iArg < _args.Length; iArg++)
            {
                _args[iArg].Save(writer);
            }

            compressor.Pack(this);
        }
Example #4
0
        internal override void Save(NativeWriter writer)
        {
            NativeWriter.TypeSignatureCompressor compressor = new NativeWriter.TypeSignatureCompressor(writer);

            writer.WriteUnsigned((uint)TypeSignatureKind.MultiDimArray | ((uint)_rank << 4));
            _arrayElementType.Save(writer);

            writer.WriteUnsigned((uint)_bounds.Length);
            foreach (uint b in _bounds)
            {
                writer.WriteUnsigned(b);
            }

            writer.WriteUnsigned((uint)_lowerBounds.Length);
            foreach (uint b in _lowerBounds)
            {
                writer.WriteUnsigned(b);
            }

            compressor.Pack(this);
        }