Skip navigation.
Downloads | Product Documentation | Support

# JmsBytesMessage.h

Go to the documentation of this file.

    00001
    00007 #ifndef _JMS_BYTES_MESSAGE_H
    00008 #define _JMS_BYTES_MESSAGE_H 1
    00009
    00010 #include <JmsCommon.h>
    00011 #include <JmsSession.h>
    00012 #include <JmsMessage.h>
    00013 #include <JmsTypes.h>
    00014
    00018 typedef JmsMessage JmsBytesMessage;
    00019
    00020 #ifdef __cplusplus
    00021 extern "C" {
    00022 #endif
    00023
    00037 extern int JMSENTRY JmsSessionBytesMessageCreate(
    00038   JmsSession           *  session,
    00039   JmsBytesMessage ** message,
    00040   JMS64I              flags
    00041 );
    00042
    00056 extern int JMSENTRY JmsBytesMessageGetBodyLength(
    00057   JmsBytesMessage * message,
    00058   JMS64I          * length,
    00059   JMS64I              flags
    00060 );
    00061
    00075 extern int JMSENTRY JmsBytesMessageReadBoolean(
    00076   JmsBytesMessage * message,
    00077   int             * value,
    00078   JMS64I              flags
    00079 );
    00080
    00094 extern int JMSENTRY JmsBytesMessageReadByte(
    00095   JmsBytesMessage * message,
    00096   unsigned char            * value,
    00097   JMS64I              flags
    00098 );
    00099
    00113 extern int JMSENTRY JmsBytesMessageReadUnsignedByte(
    00114   JmsBytesMessage * message,
    00115   unsigned char   * value,
    00116   JMS64I              flags
    00117 );
    00118
    00132 extern int JMSENTRY JmsBytesMessageReadShort(
    00133   JmsBytesMessage * message,
    00134   short           * value,
    00135   JMS64I              flags
    00136 );
    00137
    00151 extern int JMSENTRY JmsBytesMessageReadUnsignedShort(
    00152   JmsBytesMessage * message,
    00153   unsigned short  * value,
    00154   JMS64I              flags
    00155 );
    00156
    00170 extern int JMSENTRY JmsBytesMessageReadChar(
    00171   JmsBytesMessage * message,
    00172   short            * value,
    00173   JMS64I              flags
    00174 );
    00175
    00189 extern int JMSENTRY JmsBytesMessageReadInt(
    00190   JmsBytesMessage * message,
    00191   JMS32I          * value,
    00192   JMS64I              flags
    00193 );
    00194
    00208 extern int JMSENTRY JmsBytesMessageReadLong(
    00209   JmsBytesMessage * message,
    00210   JMS64I          * value,
    00211   JMS64I              flags
    00212 );
    00213
    00227 extern int JMSENTRY JmsBytesMessageReadFloat(
    00228   JmsBytesMessage * message,
    00229   float           * value,
    00230   JMS64I              flags
    00231 );
    00232
    00246 extern int JMSENTRY JmsBytesMessageReadDouble(
    00247   JmsBytesMessage * message,
    00248   double          * value,
    00249   JMS64I              flags
    00250 );
    00251
    00264 extern int JMSENTRY JmsBytesMessageReadUTF(
    00265   JmsBytesMessage * message,
    00266   JmsString      * value,
    00267   JMS64I              flags
    00268 );
    00269
    00285 extern int JMSENTRY JmsBytesMessageReadBytes(
    00286   JmsBytesMessage * message,
    00287   void       * bytes,
    00288   JMS32I          * length,
    00289   JMS64I              flags
    00290 );
    00291
    00304 extern int JMSENTRY JmsBytesMessageWriteBoolean(
    00305   JmsBytesMessage * message,
    00306   int               value,
    00307   JMS64I              flags
    00308 );
    00309
    00322 extern int JMSENTRY JmsBytesMessageWriteByte(
    00323   JmsBytesMessage * message,
    00324   unsigned char              value,
    00325   JMS64I              flags
    00326 );
    00327
    00339 extern int JMSENTRY JmsBytesMessageWriteShort(
    00340   JmsBytesMessage * message,
    00341   short             value,
    00342   JMS64I              flags
    00343 );
    00344
    00358 extern int JMSENTRY JmsBytesMessageWriteChar(
    00359   JmsBytesMessage * message,
    00360   short              value,
    00361   JMS64I              flags
    00362 );
    00363
    00376 extern int JMSENTRY JmsBytesMessageWriteInt(
    00377   JmsBytesMessage * message,
    00378   JMS32I            value,
    00379   JMS64I              flags
    00380 );
    00381
    00394 extern int JMSENTRY JmsBytesMessageWriteLong(
    00395   JmsBytesMessage * message,
    00396   JMS64I            value,
    00397   JMS64I              flags
    00398 );
    00399
    00412 extern int JMSENTRY JmsBytesMessageWriteFloat(
    00413   JmsBytesMessage * message,
    00414   float             value,
    00415   JMS64I              flags
    00416 );
    00417
    00430 extern int JMSENTRY JmsBytesMessageWriteDouble(
    00431   JmsBytesMessage * message,
    00432   double            value,
    00433   JMS64I              flags
    00434 );
    00435
    00449 extern int JMSENTRY JmsBytesMessageWriteUTF(
    00450   JmsBytesMessage * message,
    00451   JmsString        * value,
    00452   JMS64I              flags
    00453 );
    00454
    00468 extern int JMSENTRY JmsBytesMessageWriteBytes(
    00469   JmsBytesMessage * message,
    00470   void       * value,
    00471   int               length,
    00472   JMS64I              flags
    00473 );
    00474
    00487 extern int JMSENTRY JmsBytesMessageReset(
    00488   JmsBytesMessage * message,
    00489   JMS64I              flags
    00490 );
    00491
    00492 #ifdef __cplusplus
    00493 }
    00494 #endif /* __cplusplus */
    00495 #endif /* _BYTES_MESSAGE_H */
    00496

Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.