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

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() [1/4]

Uint16TypedArray.Uint16TypedArray ( ArrayBuffer  buffer)

使用ArrayBuffer来构造

参数
bufferArrayBuffer

◆ Uint16TypedArray() [2/4]

Uint16TypedArray.Uint16TypedArray ( ArrayBufferView  view)

使用ArrayBufferView来构造

参数
viewArrayBufferView

◆ Uint16TypedArray() [3/4]

Uint16TypedArray.Uint16TypedArray ( ArrayBuffer  buffer,
EnumDataType  dataType 
)

使用ArrayBuffer来构造

参数
bufferArrayBuffer
dataType指定数据类型

◆ Uint16TypedArray() [4/4]

Uint16TypedArray.Uint16TypedArray ( ArrayBuffer  buffer,
long  byteOffset,
long  byteLength,
EnumDataType  dataType 
)

使用ArrayBuffer来构造,取指定区域的数据

参数
bufferArrayBuffer
byteOffset距原始数据的偏移
byteLength偏移的长度
dataType数据类型

成员函数说明

◆ GetItemCount()

long Uint16TypedArray.GetItemCount ( )

获取数据项的个数

返回
个数

◆ GetValue()

int Uint16TypedArray.GetValue ( long  idx)

获取第idx个数据

参数
idx索引
返回

◆ SetValue() [1/3]

void Uint16TypedArray.SetValue ( long  idx,
int  val 
)

设置第idx个的数值

参数
idx索引
val

◆ SetValue() [2/3]

void Uint16TypedArray.SetValue ( long  idx,
int  x,
int  y 
)

设置第idx和第idx+1的值

参数
idx索引
xidx的值
yidx+1的值

◆ SetValue() [3/3]

void Uint16TypedArray.SetValue ( long  idx,
int  x,
int  y,
int  z 
)

设置第idx及其后连选的三个值

参数
idx索引
xidx的值
yidx+1的值
zidx+2的值