IKVM.Reflection.Module.GetBlob C# (CSharp) Method

GetBlob() abstract private method

abstract private GetBlob ( int blobIndex ) : IKVM.Reflection.Reader.ByteReader
blobIndex int
return IKVM.Reflection.Reader.ByteReader
        internal abstract ByteReader GetBlob(int blobIndex);

Usage Example

Example #1
0
        private void LazyParseArguments()
        {
            ByteReader br = module.GetBlob(module.CustomAttribute.records[customAttributeIndex].Value);

            if (br.Length == 0)
            {
                // it's legal to have an empty blob
                lazyConstructorArguments = Empty <CustomAttributeTypedArgument> .Array;
                lazyNamedArguments       = Empty <CustomAttributeNamedArgument> .Array;
            }
            else
            {
                if (br.ReadUInt16() != 1)
                {
                    throw new BadImageFormatException();
                }
                lazyConstructorArguments = ReadConstructorArguments(module.Assembly, br, Constructor);
                lazyNamedArguments       = ReadNamedArguments(module.Assembly, br, br.ReadUInt16(), Constructor.DeclaringType);
            }
        }
All Usage Examples Of IKVM.Reflection.Module::GetBlob