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

getMemptr function

Returns a reference to a MEMPTR variable that contains exactly all the bytes of a BytesMessage.

Syntax

FUNCTION getMemptr RETURNS MEMPTR.

Applies to

Message objects

Notes

*This function implicitly calls reset procedure.
*If the message was in a write-only mode, it will be in a read-only/reset mode after the call.
*getMemptr function does not create a copy of the MEMPTR variable; it returns a reference to the data maintained by the Message object.
*deleteMessageprocedure call releases the variable's memory, and the caller must copy any data it needs or needs to modify before deleting 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 see the StreamMessage and the BytesMessage.
For an example, see the Publishing, subscribing, and receiving an XML document in a BytesMessage.