Changeset 1366 for trunk/src/core/RpEncode.h
- Timestamp:
- Mar 27, 2009 4:54:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpEncode.h
r1264 r1366 15 15 #define RAPPTURE_ENCODE_H 16 16 17 #include <RpOutcome.h> 17 18 #include <RpBuffer.h> 18 #include <RpOutcome.h>19 19 20 #define RPENC_Z 1 21 #define RPENC_B64 2 22 #define RPENC_HDR 4 20 namespace Rappture { 21 namespace encoding { 23 22 24 #ifdef __cplusplus 25 extern "C" { 26 namespace Rappture { 27 namespace encoding { 28 #endif // ifdef __cplusplus 23 #define RPENC_Z (1<<0) 24 #define RPENC_B64 (1<<1) 25 #define RPENC_HDR (1<<2) 29 26 30 27 int isbinary(const char* buf, int size); 31 28 size_t isencoded(const char* buf, int size); 32 Rappture::Outcome encode (Rappture::Buffer& buf, size_t flags);33 Rappture::Outcome decode (Rappture::Buffer& buf, size_t flags);29 bool encode(Rappture::Outcome &err, Rappture::Buffer& buf, size_t flags); 30 bool decode(Rappture::Outcome &err, Rappture::Buffer& buf, size_t flags); 34 31 35 #ifdef __cplusplus 36 } // namespace encoding 37 } // namespace Rappture 38 } // extern C 39 #endif // ifdef __cplusplus 40 32 } 33 } 41 34 #endif // RAPPTURE_ENCODE_H
Note: See TracChangeset
for help on using the changeset viewer.