建構子
ArrowUInt8Arraynew
自版本:0.4.0
宣告 [src]
GArrowUInt8Array*
garrow_uint8_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
計算空值的數量。
回傳值
型別: GArrowUInt8Array
新建立的 GArrowUInt8Array
。
函式的呼叫者取得資料的所有權,並負責釋放它。 |