BinaryReader.Read7BitEncodedInt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以壓縮格式讀取 32 位元整數。
protected public:
int Read7BitEncodedInt();
public:
int Read7BitEncodedInt();
protected:
int Read7BitEncodedInt();
protected internal int Read7BitEncodedInt ();
public int Read7BitEncodedInt ();
protected int Read7BitEncodedInt ();
member this.Read7BitEncodedInt : unit -> int
Protected Friend Function Read7BitEncodedInt () As Integer
Public Function Read7BitEncodedInt () As Integer
Protected Function Read7BitEncodedInt () As Integer
傳回
壓縮格式的 32 位元整數。
例外狀況
已到達資料流的末端。
資料流已關閉。
發生 I/O 錯誤。
資料流已損毀。
備註
BinaryReader 不會在讀取失敗之後還原檔案位置。
如果整數會容納七個位,則整數只會佔用一個字節的空間。 整數預期已透過 BinaryWriter.Write7BitEncodedInt寫入。
如需一般 I/O 工作的清單,請參閱 一般 I/O 工作。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應