System::Buffer::ByteLength 方法

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

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

template<class T> static int System::Buffer::ByteLength(const SharedPtr<Array<T>> &array)
参数描述
T数组中元素的类型
参数类型描述
数组const 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)
参数描述
T数组视图的元素类型
参数类型描述
数组const 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)
参数描述
T栈数组的元素类型
N栈数组的大小
参数类型描述
数组const System::Details::StackArray<T, N>&一个栈数组

ReturnValue

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

另见