xapian-core
1.4.27
|
functions for reading and writing different width words More...
#include <cstdint>
#include <type_traits>
#include <cstring>
#include "alignment_cast.h"
#include "omassert.h"
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 157 of file wordaccess.h.
|
inline |
Definition at line 145 of file wordaccess.h.
Referenced by GlassFreeList::commit(), GlassFreeList::get_block(), GlassFreeList::mark_block_unused(), Glass::REVISION(), REVISION(), and GlassFreeList::walk().
|
inline |
Definition at line 184 of file wordaccess.h.
|
inline |
Definition at line 170 of file wordaccess.h.
Referenced by GlassFreeList::mark_block_unused(), ChertTable::read_tag(), Glass::SET_REVISION(), SET_REVISION(), and GlassFreeList::write_block().
|
inline |
Definition at line 89 of file wordaccess.h.
References alignment_cast(), and do_bswap().
|
inline |
Definition at line 100 of file wordaccess.h.
References alignment_cast(), AssertEq, AssertRel, and do_bswap().
|
inline |
Definition at line 45 of file wordaccess.h.
Referenced by do_aligned_read(), do_aligned_write(), do_unaligned_read(), and do_unaligned_write().
|
inline |
Definition at line 55 of file wordaccess.h.
|
inline |
Definition at line 68 of file wordaccess.h.
|
inline |
Definition at line 117 of file wordaccess.h.
References do_bswap().
|
inline |
Definition at line 129 of file wordaccess.h.
References AssertEq, AssertRel, and do_bswap().
|
inline |
Definition at line 163 of file wordaccess.h.
Referenced by Glass::DIR_END(), Glass::LeafItem_base< uint8_t *>::getD(), Glass::BItem_base< uint8_t *>::getD(), Glass::LeafItem_base< uint8_t *>::getI(), getint2(), Glass::LeafItem_base< uint8_t *>::getX(), Glass::BItem_base< uint8_t *>::getX(), Glass::MAX_FREE(), and Glass::TOTAL_FREE().
|
inline |
Definition at line 151 of file wordaccess.h.
Referenced by Glass::BItem_base< uint8_t *>::block_given_by(), GlassChanges::check(), and getint4().
|
inline |
Definition at line 191 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(), setint2(), Glass::LeafItem_wr::setX(), and Glass::BItem_wr::setX().
|
inline |
Definition at line 177 of file wordaccess.h.
Referenced by Glass::BItem_wr::set_block_given_by(), and setint4().