All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Public Members | Static Public Members | List of all members
nvbio::io::DataBuffer Struct Reference

Detailed description

Definition at line 41 of file output_databuffer.h.

#include <output_databuffer.h>

Public Methods

 DataBuffer ()
 ~DataBuffer ()
void append_data (const void *data, int size)
void append_int32 (int32 value)
void append_uint32 (uint32 value)
void append_int8 (int8 value)
void append_uint8 (uint8 value)
void append_formatted_string (const char *fmt,...)
void append_string (const char *str)
void append_linebreak ()
int get_pos (void)
void skip_ahead (int n)
void poke_data (int offset, const void *data, int size)
void poke_int32 (int offset, int32 val)
void poke_uint16 (int offset, uint16 val)
bool is_full (void)
void * get_cur_ptr (void)
void * get_base_ptr (void)
int get_remaining_size (void)
void rewind (void)

Public Members

std::vector< char > buffer
int pos

Static Public Members

static const int BUFFER_SIZE = 60 * 1024
static const int BUFFER_EXTRA = 64 * 1024 - BUFFER_SIZE

Constructor & Destructor Documentation

nvbio::io::DataBuffer::DataBuffer ( )

Definition at line 37 of file output_databuffer.cpp.

nvbio::io::DataBuffer::~DataBuffer ( )

Definition at line 44 of file output_databuffer.cpp.

Member Function Documentation

void nvbio::io::DataBuffer::append_data ( const void *  data,
int  size 

Definition at line 47 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_formatted_string ( const char *  fmt,

Definition at line 75 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_int32 ( int32  value)

Definition at line 55 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_int8 ( int8  value)

Definition at line 65 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_linebreak ( )
void nvbio::io::DataBuffer::append_string ( const char *  str)

Definition at line 90 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_uint32 ( uint32  value)

Definition at line 60 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::append_uint8 ( uint8  value)

Definition at line 70 of file output_databuffer.cpp.

void * nvbio::io::DataBuffer::get_base_ptr ( void  )

Definition at line 139 of file output_databuffer.cpp.

void * nvbio::io::DataBuffer::get_cur_ptr ( void  )

Definition at line 144 of file output_databuffer.cpp.

int nvbio::io::DataBuffer::get_pos ( void  )

Definition at line 95 of file output_databuffer.cpp.

int nvbio::io::DataBuffer::get_remaining_size ( void  )

Definition at line 149 of file output_databuffer.cpp.

bool nvbio::io::DataBuffer::is_full ( void  )

Definition at line 124 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::poke_data ( int  offset,
const void *  data,
int  size 

Definition at line 107 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::poke_int32 ( int  offset,
int32  val 

Definition at line 114 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::poke_uint16 ( int  offset,
uint16  val 

Definition at line 119 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::rewind ( void  )

Definition at line 134 of file output_databuffer.cpp.

void nvbio::io::DataBuffer::skip_ahead ( int  n)

Definition at line 100 of file output_databuffer.cpp.

Member Data Documentation

std::vector<char> nvbio::io::DataBuffer::buffer

Definition at line 47 of file output_databuffer.h.

const int nvbio::io::DataBuffer::BUFFER_EXTRA = 64 * 1024 - BUFFER_SIZE

Definition at line 45 of file output_databuffer.h.

const int nvbio::io::DataBuffer::BUFFER_SIZE = 60 * 1024

Definition at line 44 of file output_databuffer.h.

int nvbio::io::DataBuffer::pos

Definition at line 48 of file output_databuffer.h.

The documentation for this struct was generated from the following files: