Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setMemptr procedure
 

setMemptr procedure

Sets the specified number of bytes from the MEMPTR variable starting at startIndex in a BytesMessage.

Syntax

PROCEDURE setMemptr.
DEFINE INPUT PARAMETER memptrVar AS MEMPTR.
DEFINE INPUT PARAMETER startIndex AS INTEGER.
DEFINE INPUT PARAMETER numBytes AS INTEGER.

Applies to

Message objects

Notes

*The first byte is 1.
*setMemptr procedure implicitly calls clearBodyprocedure before setting the data and resets after setting the data. Therefore, it can be used whether the message is in a read-only mode or a write-only mode prior to the call.
*The call makes a copy of the data. Thus, the memptrVar variable is not modified by the ABL–JMS implementation and can be modified by the OpenEdge application after the call without corrupting the message.

See also

createBytesMessage procedure, setMemptr procedure, writeBoolean procedure, writeByte procedure, writeBytesFromRaw procedure, writeChar procedure, writeDate procedure, writeDateTime procedure, writeDateTime-TZ procedure, writeDouble procedure, writeFloat procedure, writeInt procedure, writeLong procedure, writeLongString procedure, writeShort procedure, writeString procedure, getContentType, getBytesCount function, endOfStream function, moveToNext procedure, readBytesToRaw procedure, readChar function, readDate function, readDateTime function, readDateTime-TZ function, readDecimal function, readInt function, readLogical function, readLongString function, readLongStringCP function, getMemptr function
For more information, see the BytesMessage.
For an example, see the Publishing, subscribing, and receiving an XML document in a BytesMessage.