#include "quartz_types.h"
#include "omassert.h"
#include <string.h>
#include "safeunistd.h"
#include <string>
Include dependency graph for btree_util.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | fdcloser |
A tiny class used to close a filehandle safely in the presence of exceptions. More... | |
Functions | |
int | GETINT1 (const byte *p, int c) |
void | SETINT1 (byte *p, int c, int x) |
int | GETINT2 (const byte *p, int c) |
void | SETINT2 (byte *p, int c, int x) |
int | get_int4 (const byte *p, int c) |
void | set_int4 (byte *p, int c, int x) |
int | sys_open_to_read (const std::string &name) |
int | sys_open_to_read_no_except (const std::string &name) |
int | sys_open_to_write (const std::string &name) |
void | sys_unlink_if_exists (const std::string &filename) |
bool | sys_close (int h) |
std::string | sys_read_all_bytes (int h, size_t max) |
void | sys_write_string (int h, const std::string &s) |
int | sys_flush (int h) |
byte * | zeroed_new (size_t size) |
int GETINT1 | ( | const byte * | p, | |
int | c | |||
) | [inline] |
void SETINT1 | ( | byte * | p, | |
int | c, | |||
int | x | |||
) | [inline] |
Definition at line 59 of file btree_util.h.
References Assert.
Referenced by Item_wr::set_key_and_block(), and Item_wr::set_key_len().
int GETINT2 | ( | const byte * | p, | |
int | c | |||
) | [inline] |
Definition at line 67 of file btree_util.h.
References Assert.
Referenced by Item_base< const byte * >::component_of(), Item_base< const byte * >::components_of(), and Item_base< const byte * >::size().
void SETINT2 | ( | byte * | p, | |
int | c, | |||
int | x | |||
) | [inline] |
Definition at line 75 of file btree_util.h.
References Assert.
Referenced by Item_wr::set_component_of(), Item_wr::set_components_of(), Item_wr::set_key_and_block(), and Item_wr::set_size().
int get_int4 | ( | const byte * | p, | |
int | c | |||
) | [inline] |
Definition at line 84 of file btree_util.h.
References Assert.
Referenced by Item_base< const byte * >::block_given_by(), and Btree::enter_key().
void set_int4 | ( | byte * | p, | |
int | c, | |||
int | x | |||
) | [inline] |
Definition at line 92 of file btree_util.h.
References Assert.
Referenced by Item_wr::form_null_key(), Item_wr::set_block_given_by(), and Item_wr::set_key_and_block().
int sys_open_to_read | ( | const std::string & | name | ) |
int sys_open_to_read_no_except | ( | const std::string & | name | ) |
int sys_open_to_write | ( | const std::string & | name | ) |
void sys_unlink_if_exists | ( | const std::string & | filename | ) |
bool sys_close | ( | int | h | ) | [inline] |
Definition at line 107 of file btree_util.h.
Referenced by Btree::close(), Btree::commit(), QuartzMetaFile::create(), Btree::create(), QuartzMetaFile::open(), and fdcloser::~fdcloser().
std::string sys_read_all_bytes | ( | int | h, | |
size_t | max | |||
) |
void sys_write_string | ( | int | h, | |
const std::string & | s | |||
) |
int sys_flush | ( | int | h | ) |
byte* zeroed_new | ( | size_t | size | ) | [inline] |
Definition at line 115 of file btree_util.h.