DataOutputStream.WriteBytes(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將字串寫入底層輸出串流,作為一串位元組。
[Android.Runtime.Register("writeBytes", "(Ljava/lang/String;)V", "")]
public void WriteBytes(string? s);
[<Android.Runtime.Register("writeBytes", "(Ljava/lang/String;)V", "")>]
abstract member WriteBytes : string -> unit
override this.WriteBytes : string -> unit
參數
- s
- String
一串需要寫入的位元組。
實作
- 屬性
例外狀況
備註
將字串寫入底層輸出串流,作為一串位元組。 字串中的每個字元依序寫出,方法是捨棄其高八位元。 若無例外,計數 written 器會增加 的 s長度。
Java 文件 java.io.DataOutputStream.writeBytes(java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。