C# 클래스 CrystalMpq.MpqFileStream

Exposes Stream with the data contained in an MpqFile.
상속: Stream
파일 보기 프로젝트 열기: sgraf812/crystalmpq 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

비공개 메소드들

메소드 설명
ApplyBsd0Patch ( PatchInfoHeader &patchInfoHeader, PatchHeader &patchHeader, uint patchLength, byte originalData ) : byte[]
ApplyCopyPatch ( PatchInfoHeader &patchInfoHeader, PatchHeader &patchHeader, uint patchLength, byte originalData ) : byte[]
ApplyPatch ( PatchInfoHeader patchInfoHeader, Stream baseStream ) : byte[]
MpqFileStream ( MpqFile file, Stream baseStream = null ) : System.Diagnostics
Read ( byte buffer, int count ) : int
ReadBlock ( int block ) : void
ReadBlockOffsets ( MpqArchive archive, uint hash, long offset, int count ) : uint[]
ReadPatchInfoHeader ( MpqArchive archive, long offset ) : PatchInfoHeader
TestPatchHeader ( MpqArchive archive, long offset ) : bool
UnpackRle ( uint compressedLength ) : byte[]
UpdateBuffer ( ) : void

메소드 상세

Close() 공개 최종 메소드

public final Close ( ) : void
리턴 void

Flush() 공개 최종 메소드

public final Flush ( ) : void
리턴 void

Read() 공개 최종 메소드

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
public final 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() 공개 최종 메소드

public final ReadByte ( ) : int
리턴 int

Seek() 공개 최종 메소드

public final Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 최종 메소드

public final SetLength ( long value ) : void
value long
리턴 void

Write() 공개 최종 메소드

public final Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void