C# Class Kirikiri.Tjs2.BinaryStream

バイナリストリーム读み书きクラス
Afficher le fichier Open project: fantasydr/krkr-cs Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

close stream

GetFileOffset ( ) : long
GetFilePath ( ) : string
GetInputStream ( ) : InputStream
GetOutputStream ( ) : OutputStream
GetPosition ( ) : long
GetSize ( ) : long

should re-implement for higher performance

IsArchive ( ) : bool

アーカイブ内のファイルかどうか判定する

Read ( ByteBuffer buffer ) : int

returns actually read size

Read ( byte buffer ) : int

returns actually read size

Read ( byte b, int off, int len ) : int

ストリームからの读み迂み

ReadBuffer ( ByteBuffer buffer ) : void
Seek ( long offset, int whence ) : long

シークする エラー时、位置は变更されない

SetEndOfStorage ( ) : void

the default behavior is raising a exception if error, raises exception

SetPosition ( long pos ) : void
Write ( ByteBuffer buffer ) : int

returns actually written size

Write ( byte buffer ) : int

returns actually written size

Write ( byte b, int off, int len ) : void
Write ( int b ) : void

1 バイトが出力ストリームに书き迂まれます。 书き迂まれるバイトは、引数 b の下位 8 ビットです。 b の上位 24 ビットは无视されます。

WriteBuffer ( ByteBuffer buffer ) : void

Method Details

Close() public abstract méthode

close stream
public abstract Close ( ) : void
Résultat void

GetFileOffset() public méthode

public GetFileOffset ( ) : long
Résultat long

GetFilePath() public abstract méthode

public abstract GetFilePath ( ) : string
Résultat string

GetInputStream() public abstract méthode

public abstract GetInputStream ( ) : InputStream
Résultat Sharpen.InputStream

GetOutputStream() public abstract méthode

public abstract GetOutputStream ( ) : OutputStream
Résultat Sharpen.OutputStream

GetPosition() public méthode

public GetPosition ( ) : long
Résultat long

GetSize() public méthode

should re-implement for higher performance
TJSException
public GetSize ( ) : long
Résultat long

IsArchive() public méthode

アーカイブ内のファイルかどうか判定する
public IsArchive ( ) : bool
Résultat bool

Read() public abstract méthode

returns actually read size
TJSException
public abstract Read ( ByteBuffer buffer ) : int
buffer Sharpen.ByteBuffer
Résultat int

Read() public abstract méthode

returns actually read size
TJSException
public abstract Read ( byte buffer ) : int
buffer byte
Résultat int

Read() public abstract méthode

ストリームからの读み迂み
TJSException
public abstract Read ( byte b, int off, int len ) : int
b byte 读み迂み先byte配列
off int 配列オフセット
len int 读み迂みサイズ
Résultat int

ReadBuffer() public méthode

public ReadBuffer ( ByteBuffer buffer ) : void
buffer Sharpen.ByteBuffer
Résultat void

Seek() public abstract méthode

シークする エラー时、位置は变更されない
TJSException
public abstract Seek ( long offset, int whence ) : long
offset long 基准位置からのオフセット
whence int 基准位置、SEEK_SET, SEEK_CUR, SEEK_END のいずれかを指定
Résultat long

SetEndOfStorage() public méthode

the default behavior is raising a exception if error, raises exception
public SetEndOfStorage ( ) : void
Résultat void

SetPosition() public méthode

public SetPosition ( long pos ) : void
pos long
Résultat void

Write() public abstract méthode

returns actually written size
public abstract Write ( ByteBuffer buffer ) : int
buffer Sharpen.ByteBuffer
Résultat int

Write() public abstract méthode

returns actually written size
public abstract Write ( byte buffer ) : int
buffer byte
Résultat int

Write() public abstract méthode

public abstract Write ( byte b, int off, int len ) : void
b byte
off int
len int
Résultat void

Write() public abstract méthode

1 バイトが出力ストリームに书き迂まれます。 书き迂まれるバイトは、引数 b の下位 8 ビットです。 b の上位 24 ビットは无视されます。
public abstract Write ( int b ) : void
b int
Résultat void

WriteBuffer() public méthode

public WriteBuffer ( ByteBuffer buffer ) : void
buffer Sharpen.ByteBuffer
Résultat void