|
xapian-core
2.0.0
|
functions for reading and writing different width words More...
#include <cstdint>#include <type_traits>#include <cstring>#include "alignment_cast.h"#include "omassert.h"
Include dependency graph for wordaccess.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| uint16_t | do_bswap (uint16_t value) |
| uint32_t | do_bswap (uint32_t value) |
| uint64_t | do_bswap (uint64_t value) |
| template<typename UINT > | |
| UINT | do_aligned_read (const unsigned char *ptr) |
| template<typename T , typename UINT > | |
| void | do_aligned_write (unsigned char *ptr, T value) |
| template<typename UINT > | |
| UINT | do_unaligned_read (const unsigned char *ptr) |
| template<typename T , typename UINT > | |
| void | do_unaligned_write (unsigned char *ptr, T value) |
| uint32_t | aligned_read4 (const unsigned char *ptr) |
| uint32_t | unaligned_read4 (const unsigned char *ptr) |
| uint16_t | aligned_read2 (const unsigned char *ptr) |
| uint16_t | unaligned_read2 (const unsigned char *ptr) |
| template<typename T > | |
| void | aligned_write4 (unsigned char *ptr, T value) |
| template<typename T > | |
| void | unaligned_write4 (unsigned char *ptr, T value) |
| template<typename T > | |
| void | aligned_write2 (unsigned char *ptr, T value) |
| template<typename T > | |
| void | unaligned_write2 (unsigned char *ptr, T value) |
functions for reading and writing different width words
Definition in file wordaccess.h.
|
inline |
Definition at line 153 of file wordaccess.h.
|
inline |
Definition at line 141 of file wordaccess.h.
Referenced by GlassFreeList::commit(), HoneyFreeList::commit(), GlassFreeList::get_block(), HoneyFreeList::get_block(), GlassFreeList::mark_block_unused(), HoneyFreeList::mark_block_unused(), Glass::REVISION(), GlassFreeList::walk(), and HoneyFreeList::walk().
|
inline |
Definition at line 180 of file wordaccess.h.
|
inline |
Definition at line 166 of file wordaccess.h.
Referenced by GlassFreeList::mark_block_unused(), HoneyFreeList::mark_block_unused(), Glass::SET_REVISION(), GlassFreeList::write_block(), and HoneyFreeList::write_block().
|
inline |
Definition at line 85 of file wordaccess.h.
References do_bswap().
|
inline |
Definition at line 96 of file wordaccess.h.
References AssertEq, AssertRel, and do_bswap().
|
inline |
Definition at line 43 of file wordaccess.h.
Referenced by do_aligned_read(), do_aligned_write(), do_unaligned_read(), do_unaligned_write(), Honey::docid_from_key(), Honey::make_doclenchunk_key(), and serialise_double().
|
inline |
Definition at line 53 of file wordaccess.h.
|
inline |
Definition at line 66 of file wordaccess.h.
|
inline |
Definition at line 113 of file wordaccess.h.
References do_bswap().
|
inline |
Definition at line 125 of file wordaccess.h.
References AssertEq, AssertRel, and do_bswap().
|
inline |
Definition at line 159 of file wordaccess.h.
Referenced by Glass::DIR_END(), Glass::LeafItem_base< T >::getD(), Glass::BItem_base< T >::getD(), Glass::LeafItem_base< T >::getI(), Glass::LeafItem_base< T >::getX(), Glass::BItem_base< T >::getX(), Glass::MAX_FREE(), Honey::DocLenChunkReader::read_doclen(), and Glass::TOTAL_FREE().
|
inline |
Definition at line 147 of file wordaccess.h.
Referenced by Glass::BItem_base< T >::block_given_by(), GlassChanges::check(), and Honey::DocLenChunkReader::read_doclen().
|
inline |
Definition at line 187 of file wordaccess.h.
Referenced by Glass::SET_DIR_END(), Glass::SET_MAX_FREE(), Glass::SET_TOTAL_FREE(), Glass::LeafItem_wr::setD(), Glass::BItem_wr::setD(), Glass::LeafItem_wr::setI(), Glass::LeafItem_wr::setX(), and Glass::BItem_wr::setX().
|
inline |
Definition at line 173 of file wordaccess.h.
Referenced by HoneyCompact::PostlistCursor< const GlassTable & >::DoclenEncoder::get_chunk(), SSTIndex::maybe_add_entry(), Glass::BItem_wr::set_block_given_by(), and SSTIndex::write().