ByteLength()

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)

Template parameters

ParameterDescription
TThe type of elements of the array

Arguments

ParameterTypeDescription
arrayconst SharedPtr<Array<T>>&An array

Return Value

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

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)

Template parameters

ParameterDescription
TThe type of elements of the array view

Arguments

ParameterTypeDescription
arrayconst System::Details::ArrayView<T>&An array view

Return Value

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

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)

Template parameters

ParameterDescription
TThe type of elements of the stack array
NThe size of the stack array

Arguments

ParameterTypeDescription
arrayconst System::Details::StackArray<T, N>&An stack array

Return Value

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

See Also