建構子
ArrowMemoryMappedInputStreamnew
宣告 [src]
GArrowMemoryMappedInputStream*
garrow_memory_mapped_input_stream_new (
const gchar* path,
GError** error
)
參數
path
-
型別:
const gchar*
要映射到記憶體上的檔案路徑。
資料的所有權屬於函式的呼叫者。 此值為 NUL 終止的 UTF-8 字串。 error
-
型別:
GError **
可恢復錯誤的回傳位置。
此參數可為 NULL
。如果回傳位置不是 NULL
,則您必須將其初始化為NULL
GError*
。如果沒有錯誤,建構子會將此參數保持初始化為 NULL
。如果發生錯誤,此參數將被設定為新分配的 GError
;呼叫者將取得資料的所有權,並負責釋放它。
回傳值
型別: GArrowMemoryMappedInputStream
新建立的 GArrowMemoryMappedInputStream
,若發生錯誤則為 NULL
。
函式的呼叫者取得資料的所有權,並負責釋放它。 |
回傳值可為 NULL 。 |