Exemplo n.º 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();
        }
Exemplo n.º 3
0
 internal static extern void MetadataIteratorInitialize(NativeMetadataIteratorHandle handle, NativeMetadataChainHandle chainHandle);
Exemplo n.º 4
0
 internal static extern bool MetadataChainWriteWithTempFile(NativeMetadataChainHandle handle, [MarshalAs(UnmanagedType.Bool)] bool usePadding, IntPtr ioHandle, IoCallbacks callbacks, IntPtr tempIoHandle, IoCallbacks tempCallbacks);
Exemplo n.º 5
0
 internal static extern bool MetadataChainCheckIfTempFileNeeded(NativeMetadataChainHandle handle, [MarshalAs(UnmanagedType.Bool)] bool usePadding);
Exemplo n.º 6
0
 internal static extern bool MetadataChainRead(NativeMetadataChainHandle handle, IntPtr ioHandle, IoCallbacks callbacks);
Exemplo n.º 7
0
 internal static extern MetadataChainStatus MetadataChainGetStatus(NativeMetadataChainHandle handle);