private static unsafe bool TryGetNativeReaderForBlob(TypeManagerHandle module, ReflectionMapBlob blob, out NativeReader reader) { byte *pBlob; uint cbBlob; if (RuntimeImports.RhFindBlob(module, (uint)blob, &pBlob, &cbBlob)) { reader = new NativeReader(pBlob, cbBlob); return(true); } reader = default(NativeReader); return(false); }
public static unsafe bool FindBlob(TypeManagerHandle typeManager, int blobId, IntPtr ppbBlob, IntPtr pcbBlob) { return(RuntimeImports.RhFindBlob(typeManager, (uint)blobId, (byte **)ppbBlob, (uint *)pcbBlob)); }
public static unsafe bool FindBlob(IntPtr hOsModule, int blobId, IntPtr ppbBlob, IntPtr pcbBlob) { return(RuntimeImports.RhFindBlob(hOsModule, (uint)blobId, (byte **)ppbBlob, (uint *)pcbBlob)); }