AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
Int32TypedBuffer类 参考
类 Int32TypedBuffer 继承关系图:
ArrayBuffer AObject Int32Buffer

Public 成员函数

Int32List GetData ()
 
void Reserve (long count)
 
void Set (long idx, int val)
 
int Get (long idx)
 
void Append (int val)
 
void Append (int a, int b)
 
void Append (int a, int b, int c)
 
void Append (int a, int b, int c, int d)
 
long GetBufferSize ()
 
long GetItemCount ()
 
- Public 成员函数 继承自 ArrayBuffer
ClassId GetClassId ()
 
long GetBufferSize ()
 
long GetItemCount ()
 
EnumDataType GetDataType ()
 
boolean Save (String fleName)
 
- Public 成员函数 继承自 AObject
ClassId GetClassId ()
 
boolean IsEqual (AObject other)
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 ArrayBuffer
static ClassId GetStaticClassId ()
 
static ArrayBuffer Cast (AObject obj)
 
static ClassId GetStaticClassId ()
 

详细描述

<> 模板辅助类.

成员函数说明

◆ Append() [1/4]

void Int32TypedBuffer.Append ( int  a,
int  b 
)

在尾部添加两个值

参数
a第一个
b第二个

◆ Append() [2/4]

void Int32TypedBuffer.Append ( int  a,
int  b,
int  c 
)

在尾部添加三个值

参数
a第1个
b第2个
c第3个

◆ Append() [3/4]

void Int32TypedBuffer.Append ( int  a,
int  b,
int  c,
int  d 
)

在尾部添加四个值

参数
a第1个
b第2个
c第3个
d第4个

◆ Append() [4/4]

void Int32TypedBuffer.Append ( int  val)

在尾部添加元素

参数
val

◆ Get()

int Int32TypedBuffer.Get ( long  idx)

获取元素的值

参数
idx索引
返回

◆ GetBufferSize()

long Int32TypedBuffer.GetBufferSize ( )

获取缓冲区大小

返回
大小

重载 ArrayBuffer .

◆ GetItemCount()

long Int32TypedBuffer.GetItemCount ( )

获取元素的个数

返回
个数

重载 ArrayBuffer .

◆ Reserve()

void Int32TypedBuffer.Reserve ( long  count)

保留内存大小,避免重复分配

参数
count元素的个数

◆ Set()

void Int32TypedBuffer.Set ( long  idx,
int  val 
)

设置元素

参数
idx索引
val