C# Class EpLibrary.cs.BinaryFile

A class for Binary File.
显示文件 Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Protected Properties

Property Type Description
m_baseBinaryLock Object
m_stream System.IO.MemoryStream

Private Properties

Property Type Description

Public Methods

Method Description
AppendToFile ( String filename ) : bool

Append the binary to the given file

BinaryFile ( ) : System

Default Constructor

BinaryFile ( BinaryFile b ) : System

Default Copy Constructor

Dispose ( ) : void
GetStream ( ) : MemoryStream

Get the current stream

LoadFromFile ( String filename ) : bool

Load the list of the properties from the given file

SaveToFile ( String filename ) : bool

Save the binary to the given file

SetStream ( MemoryStream stream ) : void

Set the stream as given stream

Protected Methods

Method Description
Dispose ( bool isDisposing ) : void

Method Details

AppendToFile() public method

Append the binary to the given file
public AppendToFile ( String filename ) : bool
filename String the name of the file to append
return bool

BinaryFile() public method

Default Constructor
public BinaryFile ( ) : System
return System

BinaryFile() public method

Default Copy Constructor
public BinaryFile ( BinaryFile b ) : System
b BinaryFile the object to copy from
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool isDisposing ) : void
isDisposing bool
return void

GetStream() public method

Get the current stream
public GetStream ( ) : MemoryStream
return System.IO.MemoryStream

LoadFromFile() public method

Load the list of the properties from the given file
public LoadFromFile ( String filename ) : bool
filename String the name of the file to load
return bool

SaveToFile() public method

Save the binary to the given file
public SaveToFile ( String filename ) : bool
filename String the name of the file to save
return bool

SetStream() public method

Set the stream as given stream
public SetStream ( MemoryStream stream ) : void
stream System.IO.MemoryStream the stream to set
return void

Property Details

m_baseBinaryLock protected_oe property

lock
protected Object m_baseBinaryLock
return Object

m_stream protected_oe property

stream
protected MemoryStream,System.IO m_stream
return System.IO.MemoryStream