Updated documentation
parent
a96d60e4e8
commit
58656e4bac
12
misc.h
12
misc.h
|
|
@ -2077,15 +2077,15 @@ private:
|
||||||
//! \tparam T class or type
|
//! \tparam T class or type
|
||||||
//! \tparam B enumeration indicating endianess
|
//! \tparam B enumeration indicating endianess
|
||||||
//! \tparam A flag indicating alignment
|
//! \tparam A flag indicating alignment
|
||||||
//! \details GetBlock() provides alternate write access to a block of memory. The enumeration B is
|
//! \details PutBlock() provides alternate write access to a block of memory. The enumeration B is
|
||||||
//! BigEndian or LittleEndian. The flag A indicates if the memory block is aligned for class or type T.
|
//! BigEndian or LittleEndian. The flag A indicates if the memory block is aligned for class or type T.
|
||||||
//! Repeatedly applying operator() results in advancing in the block of memory.
|
//! Repeatedly applying operator() results in advancing in the block of memory.
|
||||||
//! \details An example of reading two word32 values from a block of memory is shown below. <tt>w1</tt>
|
//! \details An example of writing two word32 values from a block of memory is shown below. After the code
|
||||||
//! will be <tt>0x03020100</tt> and <tt>w1</tt> will be <tt>0x07060504</tt>.
|
//! executes, the byte buffer will be <tt>{0,1,2,3,4,5,6,7}</tt>.
|
||||||
//! <pre>
|
//! <pre>
|
||||||
//! word32 w1, w2;
|
//! word32 w1=0x03020100, w20x07060504;
|
||||||
//! byte buffer[8] = {0,1,2,3,4,5,6,7};
|
//! byte buffer[8];
|
||||||
//! GetBlock<word32, LittleEndian> block(buffer);
|
//! PutBlock<word32, LittleEndian> block(NULL, buffer);
|
||||||
//! block(w1)(w2);
|
//! block(w1)(w2);
|
||||||
//! </pre>
|
//! </pre>
|
||||||
template <class T, class B, bool A=false>
|
template <class T, class B, bool A=false>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue