System::Buffer::ByteLength method

Buffer::ByteLength(const SharedPtr<Array<T>>&) method

确定指定数组中所有元素占用的字节数。

template<class T> static int System::Buffer::ByteLength(const SharedPtr<Array<T>> &array)
Parameter描述
T数组中元素的类型
ParameterType描述
arrayconst SharedPtr<Array<T>>&数组

ReturnValue

指定数组中所有元素占用的字节数

另见

Buffer::ByteLength(const System::Details::ArrayView<T>&) method

确定指定数组中所有元素占用的字节数。

template<class T> static int System::Buffer::ByteLength(const System::Details::ArrayView<T> &array)
Parameter描述
T数组视图中元素的类型
ParameterType描述
arrayconst System::Details::ArrayView<T>&数组视图

ReturnValue

指定数组视图中所有元素占用的字节数

另见

Buffer::ByteLength(const System::Details::StackArray<T, N>&) method

确定指定数组中所有元素占用的字节数。

template<class T,std::size_t> static int System::Buffer::ByteLength(const System::Details::StackArray<T, N> &array)
Parameter描述
T栈数组中元素的类型
N堆栈数组的大小
ParameterType描述
arrayconst System::Details::StackArray<T, N>&栈数组

ReturnValue

指定栈数组中所有元素占用的字节数

另见