MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.data.BinaryFile Class Reference

The BinaryFile class is used to manage binary files used by the MNIST dataset creator. More...

Inheritance diagram for MyCaffe.data.BinaryFile:

Public Member Functions

 BinaryFile (string strFile)
 The constructor. More...
 
void Dispose ()
 Release all resources. More...
 
UInt32 ReadUInt32 ()
 Reads in a UINT32 and performs an endian swap. More...
 
byte[] ReadBytes (int nCount)
 Reads bytes from the file. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose if disposing, or ignore if already disposed. More...
 

Properties

BinaryReader Reader [get]
 Returns the binary reader used. More...
 

Detailed Description

The BinaryFile class is used to manage binary files used by the MNIST dataset creator.

Definition at line 20 of file BinaryFile.cs.

Constructor & Destructor Documentation

◆ BinaryFile()

MyCaffe.data.BinaryFile.BinaryFile ( string  strFile)

The constructor.

Parameters
strFileSpecifies the filename.

Definition at line 30 of file BinaryFile.cs.

Member Function Documentation

◆ Dispose() [1/2]

void MyCaffe.data.BinaryFile.Dispose ( )

Release all resources.

Definition at line 67 of file BinaryFile.cs.

◆ Dispose() [2/2]

virtual void MyCaffe.data.BinaryFile.Dispose ( bool  disposing)
protectedvirtual

Dispose if disposing, or ignore if already disposed.

Parameters
disposingSpecifies whether or not we are disposing.

Definition at line 51 of file BinaryFile.cs.

◆ ReadBytes()

byte[] MyCaffe.data.BinaryFile.ReadBytes ( int  nCount)

Reads bytes from the file.

Parameters
nCountSpecifies the number of bytes to read.
Returns
The bytes read are returned in an array.

Definition at line 101 of file BinaryFile.cs.

◆ ReadUInt32()

UInt32 MyCaffe.data.BinaryFile.ReadUInt32 ( )

Reads in a UINT32 and performs an endian swap.

Returns
The endian swapped UINT32 is returned.

Definition at line 89 of file BinaryFile.cs.

Property Documentation

◆ Reader

BinaryReader MyCaffe.data.BinaryFile.Reader
get

Returns the binary reader used.

Definition at line 80 of file BinaryFile.cs.


The documentation for this class was generated from the following file: