Rev | Line | |
---|
[486] | 1 | NameSpace System
|
---|
| 2 | NameSpace IO
|
---|
| 3 |
|
---|
| 4 | Class BinaryWriter
|
---|
| 5 |
|
---|
| 6 | Public 'constructor
|
---|
| 7 | /*
|
---|
| 8 | ストリームへの書き込みを行う BinaryWriter クラスの新しいインスタンスを初期化します。
|
---|
| 9 | */
|
---|
| 10 | Sub BinaryWriter(output As System.IO.Stream)
|
---|
| 11 | End Sub
|
---|
| 12 |
|
---|
| 13 | /*
|
---|
| 14 | ストリームへの書き込みを行う BinaryWriter クラスの新しいインスタンスを初期化します。
|
---|
| 15 | */
|
---|
| 16 | Sub BinaryWriter(output As System.IO.Stream)
|
---|
| 17 | End Sub
|
---|
| 18 |
|
---|
| 19 | /*
|
---|
| 20 | ストリームへの書き込みを行う BinaryWriter クラスの新しいインスタンスを初期化します。
|
---|
| 21 | */
|
---|
| 22 | Sub BinaryWriter(output As System.IO.Stream, encoding As System.Text.Encoding)
|
---|
| 23 | End Sub
|
---|
| 24 |
|
---|
| 25 | Public 'field
|
---|
| 26 | /*
|
---|
| 27 | バッキング ストアを持たない BinaryWriter を指定します。
|
---|
| 28 | */
|
---|
| 29 | /* Null As BinaryWriter*/
|
---|
| 30 |
|
---|
| 31 | Protected 'field
|
---|
| 32 | /*
|
---|
| 33 | 基になるストリームを保持します。
|
---|
| 34 | */
|
---|
| 35 | OutStream As System.IO.Stream
|
---|
| 36 |
|
---|
| 37 | Public 'property
|
---|
| 38 | /*
|
---|
| 39 | BinaryWriter の基になるストリームを取得します。
|
---|
| 40 | */
|
---|
| 41 | Function BaseStream() As Stream
|
---|
| 42 | Return OutStream
|
---|
| 43 | End Function
|
---|
| 44 |
|
---|
| 45 | Public 'method
|
---|
| 46 | /*
|
---|
| 47 | 現在の BinaryWriter と基になるストリームを閉じます。
|
---|
| 48 | */
|
---|
| 49 | Sub Close()
|
---|
| 50 | End Sub
|
---|
| 51 |
|
---|
| 52 | /*
|
---|
| 53 | 現在のライタのすべてのバッファをクリアし、バッファ内のデータを基になるデバイスに書き込みます。
|
---|
| 54 | */
|
---|
| 55 | Sub Flush()
|
---|
| 56 | End Sub
|
---|
| 57 |
|
---|
| 58 | /*
|
---|
| 59 | 現在のストリーム内の位置を設定します。
|
---|
| 60 | */
|
---|
| 61 | Sub Seek()
|
---|
| 62 | End Sub
|
---|
| 63 |
|
---|
| 64 | /*
|
---|
| 65 | 現在のストリームに値を書き込みます。
|
---|
| 66 | */
|
---|
| 67 | Sub Write()
|
---|
| 68 | End Sub
|
---|
| 69 |
|
---|
| 70 | /*
|
---|
| 71 | 32 ビット整数を圧縮形式で書き込みます。
|
---|
| 72 | */
|
---|
| 73 | Sub Write7BitEncodedInt()
|
---|
| 74 | End Sub
|
---|
| 75 |
|
---|
| 76 | Protected
|
---|
| 77 | /*
|
---|
| 78 | BinaryWriter によって使用されているアンマネージ リソースを解放し、オプションでマネージ リソースも解放します。
|
---|
| 79 | */
|
---|
| 80 | Sub Dispose()
|
---|
| 81 | End Sub
|
---|
| 82 |
|
---|
| 83 | Private
|
---|
| 84 | Enc As Encoding
|
---|
| 85 | End Class
|
---|
| 86 |
|
---|
| 87 | End Namespace
|
---|
| 88 | End Namespace
|
---|
Note:
See
TracBrowser
for help on using the repository browser.