C# Class CSPspEmu.Core.NandReader

512+16 bytes per page 32 pages per block (16K+512) 2048 blocks per device (32MB+1MB)
Inheritance: Stream
Show file Open project: soywiz/cspspemu Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
NandReader ( Stream Stream ) : System
Read ( byte buffer, int offset, int count ) : int
ReadPage ( int Index ) : byte[]
ReadRawPage ( int Index ) : byte[]
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Method Details

Flush() public method

public Flush ( ) : void
return void

NandReader() public method

public NandReader ( Stream Stream ) : System
Stream Stream
return System

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadPage() public method

public ReadPage ( int Index ) : byte[]
Index int
return byte[]

ReadRawPage() public method

public ReadRawPage ( int Index ) : byte[]
Index int
return byte[]

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void