Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
IoBufPrint.h
Go to the documentation of this file.
1
2/* ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: IoBufPrint.h 5978 2026-09-11 16:13:48Z wini $
15 *
16 * COPYRIGHT: Real Time Logic, 2006
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 */
39#ifndef _IoBufPrint_h
40#define _IoBufPrint_h
41
42#include <BufPrint.h>
43#include <IoIntf.h>
44#include <BaServerLib.h>
45
51typedef struct IoBufPrint
52{
53 BufPrint super;
54 IoIntf* io;
55 ResIntfPtr res;
57
58
71 IoIntf* io,
72 size_t bufSize,
73 const char* name);
83 size_t bufSize,
84 ResIntfPtr out);
91
92#endif
BA_API void IoBufPrint_destructor(IoBufPrint *o)
Flush and release an adapter's owned resource.
BA_API IoBufPrint * IoBufPrint_create2(AllocatorIntf *alloc, size_t bufSize, ResIntfPtr out)
Allocate a writer for an already open resource.
struct IoBufPrint IoBufPrint
BufPrint adapter for a writable ResIntf.
BA_API IoBufPrint * IoBufPrint_create(AllocatorIntf *alloc, IoIntf *io, size_t bufSize, const char *name)
Open a file for writing and allocate a buffered writer.
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:98
The BufPrint class, which implements a compact printf-style formatter, is a base class used by severa...
Definition: BufPrint.h:132
BufPrint adapter for a writable ResIntf.
Definition: IoBufPrint.h:52
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:482