A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/memory__store_8cpp_source.html below:

NCBI C++ ToolKit: src/dbapi/driver/memory_store.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

38 #define NCBI_USE_ERRCODE_X Dbapi_DrvrMemStore 52  if

( !n_blk->

body

) {

85  char

*

b

= (

char

*) buff;

89  while

(nof_bytes > 0) {

92  if

(nof_bytes <= m_Last->free_space) {

109  return

(

size_t

)

n

;

122  char

*

b

= (

char

*) buff;

153  return

(

size_t

)

n

;

299  if

(!buff || !

size

)

304  char

*

b

= (

char

*) buff;

310  while

(nof_bytes > 0) {

358  if

(nof_bytes >=

m_Size

) {

369  while

(nof_bytes > 0) {

371  if

(

n

<= nof_bytes) {

402  if

(!buff || !

size

)

410  char

*

b

= (

char

*) buff;

414  while

(nof_bytes > 0) {

420  if

(nof_bytes <= m_Current->free_space) {

476  delete

[] t_block->

body

;

518  while

(nof_bytes > 0) {

526  if

(nof_bytes <

n

) {

541  delete

[] t_block->

body

;

560  while

((

n

=

static_cast<TSize>

(storage.

Read

(buff,

size_t Read(void *buff, size_t nof_bytes)

size_t Peek(void *buff, size_t nof_bytes) const

void x_Init(TSize block_size=2048)

size_t Delete(size_t nof_bytes=kMax_BlobSize)

size_t Write(const void *buff, size_t nof_bytes)

TSize x_SeekTAIL(TSize offset)

TSize x_SeekHEAD(TSize offset)

size_t Truncate(size_t nof_bytes=kMax_BlobSize)

long Seek(long offset, EWhence whence)

size_t PeekAt(void *buff, size_t start, size_t n) const

size_t Append(const void *buff, size_t nof_bytes)

SMemBlock * x_AddBlock(void)

size_t Insert(const void *buff, size_t nof_bytes)

TSize x_SeekCURR(TSize offset)

virtual size_t Read(void *buff, size_t nof_bytes)=0

#define NCBI_CURRENT_FUNCTION

Get current function name.

#define NCBI_CATCH_ALL_X(err_subcode, message)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

Definition of all error codes used in dbapi libraries (dbapi_driver.lib and others).

static size_t kMax_BlobSize

const struct ncbi::grid::netcache::search::fields::SIZE size


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4