EMA C++ Edition
EmaBufferU16.h
Go to the documentation of this file.
1/*|-----------------------------------------------------------------------------
2 *| This source code is provided under the Apache 2.0 license
3 *| and is provided AS IS with no warranty or guarantee of fit for purpose.
4 *| See the project's LICENSE.md for details.
5 *| Copyright (C) 2019 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#ifndef __refinitiv_ema_access_EmaBufferU16_h
10#define __refinitiv_ema_access_EmaBufferU16_h
11
24
25namespace refinitiv {
26
27namespace ema {
28
29namespace access {
30
32{
33public :
34
36
37
40
46 EmaBufferU16( const UInt16* buf, UInt32 length );
47
54
56
57
59 virtual ~EmaBufferU16();
61
63
64
68
75
82 EmaBufferU16& setFrom( const UInt16* buf, UInt32 length );
83
90
97
104 EmaBufferU16& append( const UInt16* buf, UInt32 length );
105
112
119
127
129
130
133 const UInt16* u16_buf() const;
134
138 UInt32 length() const;
139
144 bool operator==( const EmaBufferU16& buf ) const;
145
151 UInt16 operator[]( UInt32 index ) const;
153
154protected:
155
159};
160
167
168}
169
170}
171
172}
173
174#endif // __refinitiv_ema_access_EmaBufferU16_h
Common.h file provides definitions of common variable types used in EMA.
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
EmaBuffer operator+(EmaBuffer buff_1, const EmaBuffer &buff_2)
unsigned int UInt32
represents 32-bit unsigned integer
Definition: Common.h:56
unsigned short UInt16
represents 16-bit unsigned integer
Definition: Common.h:44
The access namespace contains all interfaces and definitions specified for use with the EMA Access pa...
The ema namespace contains all interfaces and definitions specified for use with EMA.
EmaBufferU16 represents general use binary buffer.
Definition: EmaBufferU16.h:32
EmaBufferU16 & setFrom(const UInt16 *buf, UInt32 length)
const UInt16 * u16_buf() const
EmaBufferU16(const EmaBufferU16 &buf)
bool operator==(const EmaBufferU16 &buf) const
EmaBufferU16 & operator=(const EmaBufferU16 &buf)
EmaBufferU16 & operator+=(const EmaBufferU16 &buf)
EmaBufferU16 & append(const EmaBufferU16 &buf)
EmaBufferU16 & append(const UInt16 *buf, UInt32 length)
UInt16 & operator[](UInt32 index)
UInt16 operator[](UInt32 index) const
EmaBufferU16 & append(UInt16 c)
EmaBufferU16 & operator+=(UInt16)
EmaBufferU16(const UInt16 *buf, UInt32 length)