C# Class Redzen.IO.FileByteArray

A byte array backed by a file on disk. The byte array has fixed length and random accessible as per a normal byte array, but is backed by a file rather than memory.
Inheritance: IDisposable
Mostrar archivo Open project: colgreen/Redzen

Public Methods

Method Description
Dispose ( ) : void

Dispose of the FileByteArray.

FileByteArray ( string filePath ) : System

Open an existing byte array file.

FileByteArray ( string filePath, int length ) : System

Create a new byte array file with the specified length (in bytes).

this ( int idx ) : byte

Gets the byte at the specified index within the array.

Method Details

Dispose() public method

Dispose of the FileByteArray.
public Dispose ( ) : void
return void

FileByteArray() public method

Open an existing byte array file.
public FileByteArray ( string filePath ) : System
filePath string The full path to the file.
return System

FileByteArray() public method

Create a new byte array file with the specified length (in bytes).
public FileByteArray ( string filePath, int length ) : System
filePath string The full path to the file.
length int The length of the byte array.
return System

this() public method

Gets the byte at the specified index within the array.
public this ( int idx ) : byte
idx int The index of the byte to retrieve from the array.
return byte