This method alters the amount of storage currently allocated internally to hold the Message Data buffer. It gives the application some control over the automatic buffer management, in that if the application knows that it is going to deal with a large message, it can ensure that a sufficiently large buffer is allocated. The application does not need to use this call - if it does not, the automatic buffer management code will grow the buffer size to fit.
If you resize the buffer to be smaller that the current MessageLength, you risk losing data. If you do lose data, the method returns a CompletionCode of MQCC_WARNING and a ReasonCode of MQRC_DATA_TRUNCATED.
If you resize the buffer to be smaller than the value of the DataOffset property the:
Syntax:
MQMessage.ResizeBuffer(Length&)
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
resbm |