MemoryFile.WriteBytes(Byte[], Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將位元組寫入記憶體檔案。
[Android.Runtime.Register("writeBytes", "([BIII)V", "GetWriteBytes_arrayBIIIHandler")]
public virtual void WriteBytes(byte[]? buffer, int srcOffset, int destOffset, int count);
[<Android.Runtime.Register("writeBytes", "([BIII)V", "GetWriteBytes_arrayBIIIHandler")>]
abstract member WriteBytes : byte[] * int * int * int -> unit
override this.WriteBytes : byte[] * int * int * int -> unit
參數
- buffer
- Byte[]
用來寫入位元組的位元組陣列。
- srcOffset
- Int32
從位元組陣列緩衝區中偏移,以便從中寫入。
- destOffset
- Int32
偏移到記憶體檔案中以便寫入。
- count
- Int32
要寫入的位元組數。
- 屬性
例外狀況
如果記憶體檔案已被清除或停用。
備註
將位元組寫入記憶體檔案。 如果檔案被清除,我會丟出 IOException。
Java 文件 android.os.MemoryFile.writeBytes(byte[], int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。