NCBI C++ ToolKit
Classes | Functions
ncbi_memory_connector.c File Reference
#include <connect/ncbi_memory_connector.h>
#include "ncbi_assert.h"
#include <stdlib.h>
+ Include dependency graph for ncbi_memory_connector.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SMemoryConnector
 

Functions

static const char * s_VT_GetType (CONNECTOR connector)
 
static EIO_Status s_VT_Open (CONNECTOR connector, const STimeout *timeout)
 
static EIO_Status s_VT_Wait (CONNECTOR connector, EIO_Event event, const STimeout *timeout)
 
static EIO_Status s_VT_Write (CONNECTOR connector, const void *buf, size_t size, size_t *n_written, const STimeout *timeout)
 
static EIO_Status s_VT_Read (CONNECTOR connector, void *buf, size_t size, size_t *n_read, const STimeout *timeout)
 
static EIO_Status s_VT_Status (CONNECTOR connector, EIO_Event dir)
 
static EIO_Status s_VT_Close (CONNECTOR connector, const STimeout *timeout)
 
static void s_Setup (CONNECTOR connector)
 
static void s_Destroy (CONNECTOR connector)
 
CONNECTOR MEMORY_CreateConnector (void)
 
CONNECTOR MEMORY_CreateConnectorEx (BUF buf, unsigned int own_buf)
 

Function Documentation

◆ s_Destroy()

static void s_Destroy ( CONNECTOR  connector)
static

◆ s_Setup()

static void s_Setup ( CONNECTOR  connector)
static

◆ s_VT_Close()

static EIO_Status s_VT_Close ( CONNECTOR  connector,
const STimeout timeout 
)
static

Definition at line 196 of file ncbi_memory_connector.c.

References SMemoryConnector::buf, BUF_Erase(), eIO_Success, and SConnectorTag::handle.

Referenced by s_Setup().

◆ s_VT_GetType()

static const char * s_VT_GetType ( CONNECTOR  connector)
static

Definition at line 92 of file ncbi_memory_connector.c.

Referenced by s_Setup().

◆ s_VT_Open()

static EIO_Status s_VT_Open ( CONNECTOR  connector,
const STimeout timeout 
)
static

◆ s_VT_Read()

static EIO_Status s_VT_Read ( CONNECTOR  connector,
void *  buf,
size_t  size,
size_t *  n_read,
const STimeout timeout 
)
static

◆ s_VT_Status()

static EIO_Status s_VT_Status ( CONNECTOR  connector,
EIO_Event  dir 
)
static

◆ s_VT_Wait()

static EIO_Status s_VT_Wait ( CONNECTOR  connector,
EIO_Event  event,
const STimeout timeout 
)
static

◆ s_VT_Write()

static EIO_Status s_VT_Write ( CONNECTOR  connector,
const void *  buf,
size_t  size,
size_t *  n_written,
const STimeout timeout 
)
static
Modified on Sat May 25 14:21:08 2024 by modify_doxy.py rev. 669887