pub struct IMetaDataEmit(/* private fields */);
Implementations§
§impl IMetaDataEmit
impl IMetaDataEmit
pub unsafe fn SetModuleProps<P0>(&self, szname: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn Save<P0>(&self, szfile: P0, dwsaveflags: u32) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SaveToStream<P0>(
&self,
pistream: P0,
dwsaveflags: u32
) -> Result<()>where
P0: Param<IStream>,
pub unsafe fn GetSaveSize( &self, fsave: CorSaveSize, pdwsavesize: *mut u32 ) -> Result<()>
pub unsafe fn DefineTypeDef<P0>(
&self,
sztypedef: P0,
dwtypedefflags: u32,
tkextends: u32,
rtkimplements: *mut u32,
ptd: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineNestedType<P0>(
&self,
sztypedef: P0,
dwtypedefflags: u32,
tkextends: u32,
rtkimplements: *mut u32,
tdencloser: u32,
ptd: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetHandler<P0>(&self, punk: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn DefineMethod<P0>(
&self,
td: u32,
szname: P0,
dwmethodflags: u32,
pvsigblob: *mut u8,
cbsigblob: u32,
ulcoderva: u32,
dwimplflags: u32,
pmd: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineMethodImpl( &self, td: u32, tkbody: u32, tkdecl: u32 ) -> Result<()>
pub unsafe fn DefineTypeRefByName<P0>(
&self,
tkresolutionscope: u32,
szname: P0,
ptr: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineImportType<P0, P1, P2>(
&self,
passemimport: P0,
pbhashvalue: *const c_void,
cbhashvalue: u32,
pimport: P1,
tdimport: u32,
passememit: P2,
ptr: *mut u32
) -> Result<()>where
P0: Param<IMetaDataAssemblyImport>,
P1: Param<IMetaDataImport>,
P2: Param<IMetaDataAssemblyEmit>,
pub unsafe fn DefineMemberRef<P0>(
&self,
tkimport: u32,
szname: P0,
pvsigblob: *mut u8,
cbsigblob: u32,
pmr: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineImportMember<P0, P1, P2>(
&self,
passemimport: P0,
pbhashvalue: *const c_void,
cbhashvalue: u32,
pimport: P1,
mbmember: u32,
passememit: P2,
tkparent: u32,
pmr: *mut u32
) -> Result<()>where
P0: Param<IMetaDataAssemblyImport>,
P1: Param<IMetaDataImport>,
P2: Param<IMetaDataAssemblyEmit>,
pub unsafe fn DefineEvent<P0>(
&self,
td: u32,
szevent: P0,
dweventflags: u32,
tkeventtype: u32,
mdaddon: u32,
mdremoveon: u32,
mdfire: u32,
rmdothermethods: *mut u32,
pmdevent: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetClassLayout( &self, td: u32, dwpacksize: u32, rfieldoffsets: *mut COR_FIELD_OFFSET, ulclasssize: u32 ) -> Result<()>
pub unsafe fn DeleteClassLayout(&self, td: u32) -> Result<()>
pub unsafe fn SetFieldMarshal( &self, tk: u32, pvnativetype: *mut u8, cbnativetype: u32 ) -> Result<()>
pub unsafe fn DeleteFieldMarshal(&self, tk: u32) -> Result<()>
pub unsafe fn DefinePermissionSet( &self, tk: u32, dwaction: u32, pvpermission: *const c_void, cbpermission: u32, ppm: *mut u32 ) -> Result<()>
pub unsafe fn SetRVA(&self, md: u32, ulrva: u32) -> Result<()>
pub unsafe fn GetTokenFromSig( &self, pvsig: *mut u8, cbsig: u32, pmsig: *mut u32 ) -> Result<()>
pub unsafe fn DefineModuleRef<P0>(
&self,
szname: P0,
pmur: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetParent(&self, mr: u32, tk: u32) -> Result<()>
pub unsafe fn GetTokenFromTypeSpec( &self, pvsig: *mut u8, cbsig: u32, ptypespec: *mut u32 ) -> Result<()>
pub unsafe fn SaveToMemory( &self, pbdata: *mut c_void, cbdata: u32 ) -> Result<()>
pub unsafe fn DefineUserString<P0>(
&self,
szstring: P0,
cchstring: u32,
pstk: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DeleteToken(&self, tkobj: u32) -> Result<()>
pub unsafe fn SetMethodProps( &self, md: u32, dwmethodflags: u32, ulcoderva: u32, dwimplflags: u32 ) -> Result<()>
pub unsafe fn SetTypeDefProps( &self, td: u32, dwtypedefflags: u32, tkextends: u32, rtkimplements: *mut u32 ) -> Result<()>
pub unsafe fn SetEventProps( &self, ev: u32, dweventflags: u32, tkeventtype: u32, mdaddon: u32, mdremoveon: u32, mdfire: u32, rmdothermethods: *mut u32 ) -> Result<()>
pub unsafe fn SetPermissionSetProps( &self, tk: u32, dwaction: u32, pvpermission: *const c_void, cbpermission: u32, ppm: *mut u32 ) -> Result<()>
pub unsafe fn DefinePinvokeMap<P0>(
&self,
tk: u32,
dwmappingflags: u32,
szimportname: P0,
mrimportdll: u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetPinvokeMap<P0>(
&self,
tk: u32,
dwmappingflags: u32,
szimportname: P0,
mrimportdll: u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DeletePinvokeMap(&self, tk: u32) -> Result<()>
pub unsafe fn DefineCustomAttribute( &self, tkowner: u32, tkctor: u32, pcustomattribute: *const c_void, cbcustomattribute: u32, pcv: *mut u32 ) -> Result<()>
pub unsafe fn SetCustomAttributeValue( &self, pcv: u32, pcustomattribute: *const c_void, cbcustomattribute: u32 ) -> Result<()>
pub unsafe fn DefineField<P0>(
&self,
td: u32,
szname: P0,
dwfieldflags: u32,
pvsigblob: *mut u8,
cbsigblob: u32,
dwcplustypeflag: u32,
pvalue: *const c_void,
cchvalue: u32,
pmd: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineProperty<P0>(
&self,
td: u32,
szproperty: P0,
dwpropflags: u32,
pvsig: *mut u8,
cbsig: u32,
dwcplustypeflag: u32,
pvalue: *const c_void,
cchvalue: u32,
mdsetter: u32,
mdgetter: u32,
rmdothermethods: *mut u32,
pmdprop: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineParam<P0>(
&self,
md: u32,
ulparamseq: u32,
szname: P0,
dwparamflags: u32,
dwcplustypeflag: u32,
pvalue: *const c_void,
cchvalue: u32,
ppd: *mut u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetFieldProps( &self, fd: u32, dwfieldflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32 ) -> Result<()>
pub unsafe fn SetPropertyProps( &self, pr: u32, dwpropflags: u32, dwcplustypeflag: u32, pvalue: *const c_void, cchvalue: u32, mdsetter: u32, mdgetter: u32, rmdothermethods: *mut u32 ) -> Result<()>
pub unsafe fn SetParamProps<P0>(
&self,
pd: u32,
szname: P0,
dwparamflags: u32,
dwcplustypeflag: u32,
pvalue: *const c_void,
cchvalue: u32
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn DefineSecurityAttributeSet( &self, tkobj: u32, rsecattrs: *mut COR_SECATTR, csecattrs: u32, pulerrorattr: *mut u32 ) -> Result<()>
pub unsafe fn ApplyEditAndContinue<P0>(&self, pimport: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn TranslateSigWithScope<P0, P1, P2, P3>(
&self,
passemimport: P0,
pbhashvalue: *const c_void,
cbhashvalue: u32,
import: P1,
pbsigblob: *mut u8,
cbsigblob: u32,
passememit: P2,
emit: P3,
pvtranslatedsig: *mut u8,
cbtranslatedsigmax: u32,
pcbtranslatedsig: *mut u32
) -> Result<()>where
P0: Param<IMetaDataAssemblyImport>,
P1: Param<IMetaDataImport>,
P2: Param<IMetaDataAssemblyEmit>,
P3: Param<IMetaDataEmit>,
pub unsafe fn SetMethodImplFlags(&self, md: u32, dwimplflags: u32) -> Result<()>
pub unsafe fn SetFieldRVA(&self, fd: u32, ulrva: u32) -> Result<()>
pub unsafe fn Merge<P0, P1, P2>(
&self,
pimport: P0,
phostmaptoken: P1,
phandler: P2
) -> Result<()>where
P0: Param<IMetaDataImport>,
P1: Param<IMapToken>,
P2: Param<IUnknown>,
pub unsafe fn MergeEnd(&self) -> Result<()>
Trait Implementations§
§impl Clone for IMetaDataEmit
impl Clone for IMetaDataEmit
§fn clone(&self) -> IMetaDataEmit
fn clone(&self) -> IMetaDataEmit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IMetaDataEmit
impl Debug for IMetaDataEmit
§impl Deref for IMetaDataEmit
impl Deref for IMetaDataEmit
§impl From<&IMetaDataEmit> for &IUnknown
impl From<&IMetaDataEmit> for &IUnknown
§fn from(value: &IMetaDataEmit) -> Self
fn from(value: &IMetaDataEmit) -> Self
Converts to this type from the input type.
§impl From<&IMetaDataEmit2> for &IMetaDataEmit
impl From<&IMetaDataEmit2> for &IMetaDataEmit
§fn from(value: &IMetaDataEmit2) -> Self
fn from(value: &IMetaDataEmit2) -> Self
Converts to this type from the input type.
§impl From<IMetaDataEmit> for IUnknown
impl From<IMetaDataEmit> for IUnknown
§fn from(value: IMetaDataEmit) -> Self
fn from(value: IMetaDataEmit) -> Self
Converts to this type from the input type.
§impl From<IMetaDataEmit2> for IMetaDataEmit
impl From<IMetaDataEmit2> for IMetaDataEmit
§fn from(value: IMetaDataEmit2) -> Self
fn from(value: IMetaDataEmit2) -> Self
Converts to this type from the input type.
§impl Interface for IMetaDataEmit
impl Interface for IMetaDataEmit
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IMetaDataEmit
impl PartialEq for IMetaDataEmit
§fn eq(&self, other: &IMetaDataEmit) -> bool
fn eq(&self, other: &IMetaDataEmit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMetaDataEmit
impl StructuralPartialEq for IMetaDataEmit
Auto Trait Implementations§
impl Freeze for IMetaDataEmit
impl RefUnwindSafe for IMetaDataEmit
impl !Send for IMetaDataEmit
impl !Sync for IMetaDataEmit
impl Unpin for IMetaDataEmit
impl UnwindSafe for IMetaDataEmit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more