建構子
ArrowInt16Arraynew
自 0.4.0 版本起
宣告 [src]
GArrowInt16Array*
garrow_int16_array_new (
gint64 length,
GArrowBuffer* data,
GArrowBuffer* null_bitmap,
gint64 n_nulls
)
參數
length
-
型別:
gint64
元素的數量。
data
-
型別:
GArrowBuffer
陣列 Arrow 格式的二進位資料。
資料的所有權屬於函式的呼叫者。 null_bitmap
-
型別:
GArrowBuffer
顯示空值元素的點陣圖。當第 N 個位元為 0 時,第 N 個元素為空值,否則不為空值。如果陣列沒有空值元素,則點陣圖必須為
NULL
且n_nulls
為 0。此參數可為 NULL
。資料的所有權屬於函式的呼叫者。 n_nulls
-
型別:
gint64
空值元素的數量。如果指定 -1,則空值的數量將從
null_bitmap
計算而得。
傳回值
型別: GArrowInt16Array
新建立的 GArrowInt16Array
。
函式的呼叫者取得資料的所有權,並負責釋放它。 |