nlib
|
The class to provide access with byte data as an element for MpObject
.
More...
#include "nn/nlib/msgpack/MpObject.h"
Public Types | |
typedef nlib_byte_t * | iterator |
A random-access iterator. | |
typedef const nlib_byte_t * | const_iterator |
Read-only random-access iterator. | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
A reverse iterator. | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Read-only reverse iterator. | |
typedef nlib_byte_t & | reference |
A reference to an element. | |
typedef const nlib_byte_t & | const_reference |
Read-only reference to an element. | |
Public Member Functions | |
MpObjectAsBinary (MpObject &obj) noexcept | |
iterator | begin () noexcept |
Gets the iterator pointing to the first element. | |
iterator | end () noexcept |
Gets the iterator pointing beyond the last element. | |
const_iterator | begin () const noexcept |
Gets the read-only iterator pointing to the first element. | |
const_iterator | end () const noexcept |
Gets the read-only iterator pointing beyond the last element. | |
reverse_iterator | rbegin () noexcept |
Gets the reverse iterator pointing to the last element. | |
reverse_iterator | rend () noexcept |
Gets the reverse iterator pointing ahead of the first element. | |
const_reverse_iterator | rbegin () const noexcept |
Gets the read-only reverse iterator pointing to the last element. | |
const_reverse_iterator | rend () const noexcept |
Gets the read-only reverse iterator pointing ahead of the first element. | |
reference | operator[] (size_t n) noexcept |
Gets the nth element. n must be less than the number of stored elements. More... | |
const_reference | operator[] (size_t n) const noexcept |
The const decoration version of the above function. | |
uint32_t | GetSize () const noexcept |
Returns the number of stored elements. | |
The class to provide access with byte data as an element for MpObject
.
Definition at line 692 of file MpObject.h.
|
inlineexplicitnoexcept |
[in] | obj | MpObject to be accessed as binary. obj.IsBinary() must be true. |
Definition at line 705 of file MpObject.h.
|
inlinenoexcept |
Gets the nth element. n must be less than the number of stored elements.
[in] | n | The position of an element. |
Definition at line 720 of file MpObject.h.
© Nintendo Co., Ltd. All rights reserved.