檢視原始碼 File.Stream (Elixir v1.16.2)

定義 File.Stream 結構,由 File.stream!/3 傳回。

下列欄位為公開欄位

  • path - 檔案路徑
  • modes - 檔案模式
  • raw - 布林值,表示是否應該使用 bin 函數
  • line_or_bytes - 如果是讀取,則讀取行或指定數量的位元組
  • node - 檔案所屬的節點

摘要

類型

@type t() :: %File.Stream{
  line_or_bytes: term(),
  modes: term(),
  node: term(),
  path: term(),
  raw: term()
}