1 | /* |
2 | * PROGRAM: FB interfaces. |
3 | * MODULE: InternalMessageBuffer.h |
4 | * DESCRIPTION: Old=>new message style converter. |
5 | * |
6 | * The contents of this file are subject to the Initial |
7 | * Developer's Public License Version 1.0 (the "License"); |
8 | * you may not use this file except in compliance with the |
9 | * License. You may obtain a copy of the License at |
10 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. |
11 | * |
12 | * Software distributed under the License is distributed AS IS, |
13 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. |
14 | * See the License for the specific language governing rights |
15 | * and limitations under the License. |
16 | * |
17 | * The Original Code was created by Alex Peshkov |
18 | * for the Firebird Open Source RDBMS project. |
19 | * |
20 | * Copyright (c) 2013 Alex Peshkov <peshkoff at mail.ru> |
21 | * and all contributors signed below. |
22 | * |
23 | * All Rights Reserved. |
24 | * Contributor(s): ______________________________________. |
25 | * |
26 | * |
27 | */ |
28 | |
29 | #ifndef FB_COMMON_CLASSES_INTERNAL_MESSAGE_BUFFER |
30 | #define FB_COMMON_CLASSES_INTERNAL_MESSAGE_BUFFER |
31 | |
32 | #include "firebird/Provider.h" |
33 | |
34 | namespace Firebird { |
35 | |
36 | class InternalMessageBuffer |
37 | { |
38 | public: |
39 | InternalMessageBuffer(unsigned aBlrLength, const unsigned char* aBlr, |
40 | unsigned aBufferLength, unsigned char* aBuffer); |
41 | InternalMessageBuffer(IMessageMetadata* aMetadata, unsigned char* aBuffer); |
42 | ~InternalMessageBuffer(); |
43 | |
44 | public: |
45 | Firebird::IMessageMetadata* metadata; |
46 | UCHAR* buffer; |
47 | }; |
48 | |
49 | } // namespace Firebird |
50 | |
51 | #endif // FB_COMMON_CLASSES_INTERNAL_MESSAGE_BUFFER |
52 | |