AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
Uint32TypedArray (ArrayBuffer buffer) | |
Uint32TypedArray (ArrayBufferView view) | |
Uint32TypedArray (ArrayBuffer buffer, EnumDataType dataType) | |
Uint32TypedArray (ArrayBuffer buffer, long byteOffset, long byteLength, EnumDataType dataType) | |
long | GetValue (long idx) |
void | SetValue (long idx, long val) |
void | SetValue (long idx, long x, long y) |
void | SetValue (long idx, long x, long y, long z) |
long | GetItemCount () |
Public 成员函数 继承自 ArrayBufferView | |
ArrayBufferView (ArrayBuffer buffer, long byteOffset, long byteLength, EnumDataType dataType) | |
long | GetByteOffset () |
long | GetByteLength () |
EnumDataType | GetDataType () |
ArrayBuffer | GetBuffer () |
void | UpdateAddress () |
<> ArrayBufferView辅助类模板
Uint32TypedArray.Uint32TypedArray | ( | ArrayBuffer | buffer | ) |
使用ArrayBuffer来构造
buffer | ArrayBuffer |
Uint32TypedArray.Uint32TypedArray | ( | ArrayBufferView | view | ) |
使用ArrayBufferView来构造
view | ArrayBufferView |
Uint32TypedArray.Uint32TypedArray | ( | ArrayBuffer | buffer, |
EnumDataType | dataType | ||
) |
使用ArrayBuffer来构造
buffer | ArrayBuffer |
dataType | 指定数据类型 |
Uint32TypedArray.Uint32TypedArray | ( | ArrayBuffer | buffer, |
long | byteOffset, | ||
long | byteLength, | ||
EnumDataType | dataType | ||
) |
使用ArrayBuffer来构造,取指定区域的数据
buffer | ArrayBuffer |
byteOffset | 距原始数据的偏移 |
byteLength | 偏移的长度 |
dataType | 数据类型 |
long Uint32TypedArray.GetItemCount | ( | ) |
获取数据项的个数
long Uint32TypedArray.GetValue | ( | long | idx | ) |
获取第idx个数据
idx | 索引 |
void Uint32TypedArray.SetValue | ( | long | idx, |
long | val | ||
) |
设置第idx个的数值
idx | 索引 |
val | 值 |
void Uint32TypedArray.SetValue | ( | long | idx, |
long | x, | ||
long | y | ||
) |
设置第idx和第idx+1的值
idx | 索引 |
x | idx的值 |
y | idx+1的值 |
void Uint32TypedArray.SetValue | ( | long | idx, |
long | x, | ||
long | y, | ||
long | z | ||
) |
设置第idx及其后连选的三个值
idx | 索引 |
x | idx的值 |
y | idx+1的值 |
z | idx+2的值 |