Show / Hide Table of Contents

Class H5File

An HDF5 file object. This is the entry-point to work with HDF5 files.

Inheritance
System.Object
H5Object
H5AttributableObject
H5Group
H5File
Implements
IDisposable
Inherited Members
H5Group.Children
H5Group.LinkExists(String, H5LinkAccess)
H5Group.Get(String, H5LinkAccess)
H5Group.Get(H5ObjectReference, H5LinkAccess)
H5Group.Group(String, H5LinkAccess)
H5Group.Dataset(String, H5LinkAccess)
H5Group.CommitedDatatype(String, H5LinkAccess)
H5Group.GetChildren(H5LinkAccess)
H5AttributableObject.Attributes
H5AttributableObject.AttributeExists(String)
H5AttributableObject.Attribute(String)
H5Object.Name
Namespace: HDF5.NET
Assembly: HDF5.NET.dll
Syntax
public class H5File : H5Group

Fields

| Improve this Doc View Source

DefaultChunkCacheFactory

The default chunk cache factory.

Declaration
public static Func<IChunkCache> DefaultChunkCacheFactory
Field Value
Type Description
Func<IChunkCache>

Properties

| Improve this Doc View Source

ChunkCacheFactory

Gets or sets the current chunk cache factory.

Declaration
public Func<IChunkCache> ChunkCacheFactory { get; set; }
Property Value
Type Description
Func<IChunkCache>
| Improve this Doc View Source

Path

Gets the path of the opened HDF5 file. The value is :memory: if the file is not loaded from a file system.

Declaration
public string Path { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Dispose()

An HDF5 file object. This is the entry-point to work with HDF5 files.

Declaration
public void Dispose()
| Improve this Doc View Source

Open(Stream)

Opens an HDF5 stream.

Declaration
public static H5File Open(Stream stream)
Parameters
Type Name Description
Stream stream

The stream to open.

Returns
Type Description
H5File
| Improve this Doc View Source

Open(String, FileMode, FileAccess, FileShare, Boolean)

Opens an HDF5 file.

Declaration
public static H5File Open(string filePath, FileMode mode, FileAccess fileAccess, FileShare fileShare, bool useAsync = false)
Parameters
Type Name Description
System.String filePath

The file to open.

FileMode mode

A value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.

FileAccess fileAccess

A value that specifies the operations that can be performed on the file.

FileShare fileShare

A value specifying the type of access other threads have to the file.

System.Boolean useAsync

A boolean which indicates if the file be opened with the flag.

Returns
Type Description
H5File
| Improve this Doc View Source

OpenRead(String)

Opens an HDF5 file for reading. Please see the Remarks section for more information how the file is opened.

Declaration
public static H5File OpenRead(string filePath)
Parameters
Type Name Description
System.String filePath

The file to open.

Returns
Type Description
H5File

Implements

IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2023 Vincent Wilms