Rev | Line | |
---|
[671] | 1 | /* |
---|
| 2 | * ====================================================================== |
---|
| 3 | * Rappture::encoding |
---|
| 4 | * |
---|
| 5 | * AUTHOR: Derrick Kearney, Purdue University |
---|
| 6 | * |
---|
| 7 | * Copyright (c) 2004-2007 Purdue Research Foundation |
---|
| 8 | * ---------------------------------------------------------------------- |
---|
| 9 | * See the file "license.terms" for information on usage and |
---|
| 10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
| 11 | * ====================================================================== |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | #ifndef RAPPTURE_ENCODE_H |
---|
| 15 | #define RAPPTURE_ENCODE_H |
---|
| 16 | |
---|
[1030] | 17 | #include <RpBuffer.h> |
---|
| 18 | #include <RpOutcome.h> |
---|
[671] | 19 | |
---|
| 20 | #define RPENC_Z 1 |
---|
| 21 | #define RPENC_B64 2 |
---|
| 22 | #define RPENC_HDR 4 |
---|
| 23 | |
---|
| 24 | #ifdef __cplusplus |
---|
| 25 | extern "C" { |
---|
| 26 | namespace Rappture { |
---|
| 27 | namespace encoding { |
---|
| 28 | #endif // ifdef __cplusplus |
---|
| 29 | |
---|
| 30 | int isbinary(const char* buf, int size); |
---|
| 31 | Rappture::Outcome encode (Rappture::Buffer& buf, int flags); |
---|
| 32 | Rappture::Outcome decode (Rappture::Buffer& buf, int flags); |
---|
| 33 | |
---|
| 34 | #ifdef __cplusplus |
---|
| 35 | } // namespace encoding |
---|
| 36 | } // namespace Rappture |
---|
| 37 | } // extern C |
---|
| 38 | #endif // ifdef __cplusplus |
---|
| 39 | |
---|
| 40 | #endif // RAPPTURE_ENCODE_H |
---|
Note: See
TracBrowser
for help on using the repository browser.