Foxit PDF SDK
FSDK::UInt32Array类 参考

Public 成员函数

 Add (new_element)
 在尾部添加一个元素。可能会增长数组。 更多...
 
 constructor ()
 构造函数。
 
 Find (data, start)
 Find an element from specified position to last. 更多...
 
 GetAt (index)
 This method retrieves an element specified by an index number. 更多...
 
 InsertAt (index, new_element, count)
 Inset one or more continuous element at specified position. 更多...
 
 InsertAt (start_index, new_array)
 Inset an array at specified position. 更多...
 
GetSize() RemoveAll ()
 获取数组中元素的数量。 更多...
 
 RemoveAt (index, count)
 Remove a number of elements at specified position. 更多...
 
 SetAt (index, new_element)
 此方法覆盖由索引号指定的元素。 更多...
 
 SetAtGrow (index, new_element)
 在指定位置设置元素值。可能会增长数组。 更多...
 

成员函数说明

◆ Add()

FSDK::UInt32Array::Add ( new_element  )

在尾部添加一个元素。可能会增长数组。

参数
[in]new_element输入元素。
返回
true 表示成功,而 false 表示失败(如内存错误)。

◆ Find()

FSDK::UInt32Array::Find ( data  ,
start   
)

Find an element from specified position to last.

参数
[in]dataThe input element.
[in]startSpecifies the zero-based index of start element to find.
返回
An index of the found element. -1 means found none.

◆ GetAt()

FSDK::UInt32Array::GetAt ( index  )

This method retrieves an element specified by an index number.

参数
[in]indexSpecifies the zero-based index of the element.
返回
An element.

◆ InsertAt() [1/2]

FSDK::UInt32Array::InsertAt ( index  ,
new_element  ,
count   
)

Inset one or more continuous element at specified position.

参数
[in]indexSpecifies the zero-based index in the array.
[in]new_elementSpecifies the element value to insert.
[in]countSpecifies the count of the element to insert.
返回
true 表示成功,而 false 表示失败(如参数或内存错误)。

◆ InsertAt() [2/2]

FSDK::UInt32Array::InsertAt ( start_index  ,
new_array   
)

Inset an array at specified position.

参数
[in]start_indexSpecifies the zero-based index of start element to insert at.
[in]new_arrayThe input array.
返回
true 表示成功,而 false 表示失败(如参数或内存错误)。

◆ RemoveAll()

GetSize () FSDK::UInt32Array::RemoveAll ( )

获取数组中元素的数量。

返回
数组中元素的数量。获取数组中的上界,实际上是最大有效索引。
上界。更改分配的大小和增长量。
参数
[in]new_sizeThe new size in elements expected.
[in]grow_byThe grow amount in elements expected. This can be -1 for the grow amount unchanged.
返回
true 表示成功,而 false 表示失败 (such as parameter or memory error).Clean up the array.
None.

◆ RemoveAt()

FSDK::UInt32Array::RemoveAt ( index  ,
count   
)

Remove a number of elements at specified position.

参数
[in]indexSpecifies the zero-based index in the array.
[in]countSpecifies the count of element to remove.
返回
true 表示成功,而 false 表示失败(如参数或内存错误)。

◆ SetAt()

FSDK::UInt32Array::SetAt ( index  ,
new_element   
)

此方法覆盖由索引号指定的元素。

参数
[in]index指定元素的从零开始的索引。
[in]new_element元素。
返回
true 表示成功,而 false 表示失败。

◆ SetAtGrow()

FSDK::UInt32Array::SetAtGrow ( index  ,
new_element   
)

在指定位置设置元素值。可能会增长数组。

参数
[in]index指定数组中元素的从零开始的索引。
[in]new_element输入元素。
返回
true 表示成功,而 false 表示失败。