Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static unsafe bool FindBlob(TypeManagerHandle typeManager, int blobId, IntPtr ppbBlob, IntPtr pcbBlob)
 {
     return(RuntimeImports.RhFindBlob(typeManager, (uint)blobId, (byte **)ppbBlob, (uint *)pcbBlob));
 }
Ejemplo n.º 3
0
 public static unsafe bool FindBlob(IntPtr hOsModule, int blobId, IntPtr ppbBlob, IntPtr pcbBlob)
 {
     return(RuntimeImports.RhFindBlob(hOsModule, (uint)blobId, (byte **)ppbBlob, (uint *)pcbBlob));
 }