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