NCBI C++ ToolKit
Public Attributes | List of all members
tds_output_stream Struct Reference

Search Toolkit Book for tds_output_stream

define a stream of data used for output More...

#include <dbapi/driver/ftds100/freetds/freetds/stream.h>

+ Collaboration diagram for tds_output_stream:

Public Attributes

int(* write )(struct tds_output_stream *stream, size_t len)
 write len bytes from buffer, return <0 if error or len More...
 
char * buffer
 write buffer. More...
 
size_t buf_len
 

Detailed Description

define a stream of data used for output

Definition at line 39 of file stream.h.

Member Data Documentation

◆ buf_len

size_t tds_output_stream::buf_len

◆ buffer

char * tds_output_stream::buffer

write buffer.

client will write data into this buffer. not required that buffer is the result of any alloc function so buffer pointer can point in the middle of another buffer. client will write up to buf_len. client should not cache buffer and buf_len before a call to write as write can change these values.

Definition at line 50 of file stream.h.

Referenced by read_and_convert(), tds_bcp_fread(), tds_convert_stream(), tds_copy_stream(), tds_dataout_stream_init(), tds_dataout_stream_write(), tds_dynamic_stream_init(), tds_dynamic_stream_write(), tds_quoteout_stream_init(), tds_staticout_stream_init(), and tds_staticout_stream_write().

◆ write

int(* tds_output_stream::write)(struct tds_output_stream *stream, size_t len)

The documentation for this struct was generated from the following file:
Modified on Fri Sep 20 14:58:28 2024 by modify_doxy.py rev. 669887
HHS Vulnerability Disclosure