Пример #1
0
        internal void Write(BinaryWriter output)
        {
            output.Write((int)(Safmq.SIZE_INT + Safmq.SIZE_INT + reciptID.getSize() + Safmq.SIZE_INT));

            output.Write(queueID.handle);
            output.Write(cursorID.handle);
            reciptID.Write(output);
            output.Write(timeoutseconds);
        }
Пример #2
0
 /*
  * <summary>
  * Determines the size of the QueueMessage when written to a
  * stream.
  * </summary>
  *
  * <returns>The size input bytes of the object when written to a stream.</returns>
  */
 internal int getSize()
 {
     return(messageID.getSize() +
            1 +                          //byte	messageClass
            1 +                          //byte	messagePriority
            Safmq.MSGLBL_LENGTH +
            Safmq.SIZE_INT +             //int		timeStamp			= 9;
            Safmq.SIZE_INT +             // int		timeToLiveSeconds	= -1;
            1 +                          //byte	ttlErrorWanted		= 0;
            Safmq.QNAME_LENGTH +
            reciptID.getSize() +
            1 +                          //byte	bodyType			= Safmq.BT_NONE;
            Safmq.SIZE_INT +             //int		bodySize			= -1;
            body.GetBuffer().Length);
 }
Пример #3
0
 internal void Write(BinaryWriter output)
 {
     output.Write((int)(Safmq.SIZE_INT + msgID.getSize()));
     output.Write(queueID.handle);
     msgID.Write(output);
 }