Esempio n. 1
0
        internal static H5File OpenCore(string filePath, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, bool deleteOnClose = false)
        {
            var absoluteFilePath = System.IO.Path.GetFullPath(filePath);
            var stream           = System.IO.File.Open(absoluteFilePath, fileMode, fileAccess, fileShare);

            return(H5File.OpenCore(stream, absoluteFilePath, deleteOnClose));
        }
Esempio n. 2
0
 public static H5File Open(Stream stream)
 {
     return(H5File.OpenCore(stream, string.Empty));
 }
Esempio n. 3
0
 internal static H5File OpenReadCore(string filePath, bool deleteOnClose = false)
 {
     return(H5File.OpenCore(filePath, FileMode.Open, FileAccess.Read, FileShare.Read, deleteOnClose));
 }
Esempio n. 4
0
 public static H5File Open(string filePath, FileMode mode, FileAccess fileAccess, FileShare fileShare)
 {
     return(H5File.OpenCore(filePath, mode, fileAccess, fileShare));
 }