C++ TargetRTS
Loading...
Searching...
No Matches
RTMemoryOutBuffer.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTMemoryOutBuffer_h__
11#define __RTMemoryOutBuffer_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTOBuffer_h__
18#include <RTOBuffer.h>
19#endif
20
22{
23public:
24 RTMemoryOutBuffer( char *, int size );
25 virtual ~RTMemoryOutBuffer( void );
26
27 virtual int write( const char * data, int size ) override;
28 virtual int flush( void ) override;
29
30private:
31 char * memory;
32 int size;
33
34private:
35 // unavailable methods
37 RTMemoryOutBuffer & operator=( const RTMemoryOutBuffer & );
38}; //lint !e1712
39
40#endif // __RTMemoryOutBuffer_h__
Definition: RTMemoryOutBuffer.h:22
virtual int write(const char *data, int size) override
Write a string to the buffer.
virtual int flush(void) override
Flushes the data written to the buffer.
Represents an output buffer.
Definition: RTOBuffer.h:23