System::Buffer::ByteLength method

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

Determines the number of bytes occupied by all elements of the specified array.

template<class T> static int System::Buffer::ByteLength(const SharedPtr<Array<T>> &array)
ParameterDescription
TThe type of elements of the array
ParameterTypeDescription
arrayconst SharedPtr<Array<T>>&An array

ReturnValue

The number of bytes occupied by all elements of the specified array

See Also

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

Determines the number of bytes occupied by all elements of the specified array.

template<class T> static int System::Buffer::ByteLength(const System::Details::ArrayView<T> &array)
ParameterDescription
TThe type of elements of the array view
ParameterTypeDescription
arrayconst System::Details::ArrayView<T>&An array view

ReturnValue

The number of bytes occupied by all elements of the specified array view

See Also

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

Determines the number of bytes occupied by all elements of the specified array.

template<class T,std::size_t> static int System::Buffer::ByteLength(const System::Details::StackArray<T, N> &array)
ParameterDescription
TThe type of elements of the stack array
NThe size of the stack array
ParameterTypeDescription
arrayconst System::Details::StackArray<T, N>&An stack array

ReturnValue

The number of bytes occupied by all elements of the specified stack array

See Also