C# 클래스 Mosa.FileSystem.FAT.FatFileStream

상속: System.IO.Stream
파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
canRead bool
canWrite bool
clusterSize uint
currentCluster uint
data byte[]
directorySector uint
directorySectorIndex uint
fs FatFileSystem
isDirty bool
length long
lengthOnDisk long
nthCluster uint
position long
startCluster uint

공개 메소드들

메소드 설명
FatFileStream ( FatFileSystem fs, FatFileLocation location ) : System.IO

Initializes a new instance of the FatFileStream class.

FatFileStream ( FatFileSystem fs, uint startCluster, uint directorySector, uint directorySectorIndex ) : System.IO

Initializes a new instance of the FatFileStream class.

Flush ( ) : void

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.

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

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

ReadByte ( ) : int

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Seek ( long offset, SeekOrigin origin ) : long

When overridden in a derived class, sets the position within the current stream.

SetLength ( long value ) : void

When overridden in a derived class, sets the length of the current stream.

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

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

WriteByte ( byte value ) : void

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

보호된 메소드들

메소드 설명
NextCluster ( ) : bool

Gets the next cluster.

NextClusterExpand ( ) : bool

Gets the next cluster

ReadCluster ( uint cluster ) : void

Reads the cluster.

메소드 상세

FatFileStream() 공개 메소드

Initializes a new instance of the FatFileStream class.
public FatFileStream ( FatFileSystem fs, FatFileLocation location ) : System.IO
fs FatFileSystem The fs.
location FatFileLocation The location.
리턴 System.IO

FatFileStream() 공개 메소드

Initializes a new instance of the FatFileStream class.
public FatFileStream ( FatFileSystem fs, uint startCluster, uint directorySector, uint directorySectorIndex ) : System.IO
fs FatFileSystem The fs.
startCluster uint The start cluster.
directorySector uint The directory sector.
directorySectorIndex uint Index of the directory sector.
리턴 System.IO

Flush() 공개 메소드

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
/// An I/O error occurs. ///
public Flush ( ) : void
리턴 void

NextCluster() 보호된 메소드

Gets the next cluster.
protected NextCluster ( ) : bool
리턴 bool

NextClusterExpand() 보호된 메소드

Gets the next cluster
protected NextClusterExpand ( ) : bool
리턴 bool

Read() 공개 메소드

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
/// The sum of and is larger than the buffer length. /// /// is null. /// /// or is negative. /// /// An I/O error occurs. /// /// The stream does not support reading. /// /// Methods were called after the stream was closed. ///
public Read ( byte buffer, int offset, int count ) : int
buffer byte An array of bytes. When this method returns, the buffer contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source.
offset int The zero-based byte offset in at which to begin storing the data read from the current stream.
count int The maximum number of bytes to be read from the current stream.
리턴 int

ReadByte() 공개 메소드

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
/// The stream does not support reading. /// /// Methods were called after the stream was closed. ///
public ReadByte ( ) : int
리턴 int

ReadCluster() 보호된 메소드

Reads the cluster.
protected ReadCluster ( uint cluster ) : void
cluster uint The cluster.
리턴 void

Seek() 공개 메소드

When overridden in a derived class, sets the position within the current stream.
/// An I/O error occurs. /// /// The stream does not support seeking, such as if the stream is constructed from a pipe or console output. /// /// Methods were called after the stream was closed. ///
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point used to obtain the new position.
리턴 long

SetLength() 공개 메소드

When overridden in a derived class, sets the length of the current stream.
/// An I/O error occurs. /// /// The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. /// /// Methods were called after the stream was closed. ///
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
리턴 void

Write() 공개 메소드

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
/// The sum of and is greater than the buffer length. /// /// is null. /// /// or is negative. /// /// An I/O error occurs. /// /// The stream does not support writing. /// /// Methods were called after the stream was closed. ///
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies bytes from to the current stream.
offset int The zero-based byte offset in at which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
리턴 void

WriteByte() 공개 메소드

Writes a byte to the current position in the stream and advances the position within the stream by one byte.
/// An I/O error occurs. /// /// The stream does not support writing, or the stream is already closed. /// /// Methods were called after the stream was closed. ///
public WriteByte ( byte value ) : void
value byte The byte to write to the stream.
리턴 void

프로퍼티 상세

canRead 보호되어 있는 프로퍼티

protected bool canRead
리턴 bool

canWrite 보호되어 있는 프로퍼티

protected bool canWrite
리턴 bool

clusterSize 보호되어 있는 프로퍼티

protected uint clusterSize
리턴 uint

currentCluster 보호되어 있는 프로퍼티

protected uint currentCluster
리턴 uint

data 보호되어 있는 프로퍼티

protected byte[] data
리턴 byte[]

directorySector 보호되어 있는 프로퍼티

protected uint directorySector
리턴 uint

directorySectorIndex 보호되어 있는 프로퍼티

protected uint directorySectorIndex
리턴 uint

fs 보호되어 있는 프로퍼티

protected FatFileSystem,Mosa.FileSystem.FAT fs
리턴 FatFileSystem

isDirty 보호되어 있는 프로퍼티

protected bool isDirty
리턴 bool

length 보호되어 있는 프로퍼티

protected long length
리턴 long

lengthOnDisk 보호되어 있는 프로퍼티

protected long lengthOnDisk
리턴 long

nthCluster 보호되어 있는 프로퍼티

protected uint nthCluster
리턴 uint

position 보호되어 있는 프로퍼티

protected long position
리턴 long

startCluster 보호되어 있는 프로퍼티

protected uint startCluster
리턴 uint