Example #1
0
        internal NativeMetadataIterator(NativeMetadataChainHandle chainHandle)
        {
            Contract.Requires(chainHandle != null);
            Contract.Requires(!chainHandle.IsClosed);
            Contract.Ensures(!_handle.IsClosed);

            SafeNativeMethods.MetadataIteratorInitialize(_handle, chainHandle);
        }
        internal NativeMetadataChain(Stream stream)
        {
            Contract.Requires(stream != null);
            Contract.Requires(stream.CanRead);
            Contract.Requires(stream.CanWrite);
            Contract.Requires(stream.CanSeek);
            Contract.Ensures(Handle != null);
            Contract.Ensures(!Handle.IsClosed);
            Contract.Ensures(GetStatus() == MetadataChainStatus.Ok);

            _callbacks = InitializeCallbacks(stream);
            Handle     = SafeNativeMethods.MetadataChainNew();
        }
Example #3
0
 internal static extern void MetadataIteratorInitialize(NativeMetadataIteratorHandle handle, NativeMetadataChainHandle chainHandle);
Example #4
0
 internal static extern bool MetadataChainWriteWithTempFile(NativeMetadataChainHandle handle, [MarshalAs(UnmanagedType.Bool)] bool usePadding, IntPtr ioHandle, IoCallbacks callbacks, IntPtr tempIoHandle, IoCallbacks tempCallbacks);
Example #5
0
 internal static extern bool MetadataChainCheckIfTempFileNeeded(NativeMetadataChainHandle handle, [MarshalAs(UnmanagedType.Bool)] bool usePadding);
Example #6
0
 internal static extern bool MetadataChainRead(NativeMetadataChainHandle handle, IntPtr ioHandle, IoCallbacks callbacks);
Example #7
0
 internal static extern MetadataChainStatus MetadataChainGetStatus(NativeMetadataChainHandle handle);