$Lstr_Add_UserBuffer

From m204wiki
Revision as of 22:28, 8 February 2011 by Admin (talk | contribs) (1 revision)
Jump to navigation Jump to search

<section begin="desc" />Add longstring to user buffer<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Lstr_Add_UserBuffer function is to be entered.

This callable function, new in Sirius Mods Version 6.7, appends the value of its longstring argument to the contents of the current user buffer. Such a user buffer is a Universal Buffer or an MQ/204 user buffer, both of which, as of Model 204 V6R1.0, may transfer Large Object (LOB) data. For Versions of Model 204 prior to 6.1, this $function applies only to the MQ user buffer and requires the MQ/204 feature.

The $Lstr_Add_UserBuffer function accepts one argument and returns a numeric result: the new length of the user buffer contents.

The argument is an arbitrary string or longstring.

Syntax

<section begin="syntax" /> [%LEN =] $Lstr_Add_UserBuffer(longstring) <section end="syntax" />

$Lstr_Add_UserBuffer Function

%LEN is the resultant length of the user buffer data in bytes, or it is -1 to indicate an error.


The Universal Buffer is a one-per-user, temporary storage area that, like the MQ buffer, automatically expands to accommodate its data contents. Unlike prior Versions, the MQ buffer in Model 204 6.1 also becomes a one-per-user buffer.

If the buffer has to be expanded to accommodate the longstring, its length is increased in increments of 4096 bytes (one page). Any errors during the transfer of the longstring result in request cancellation.

Data insertions into or deletions from the buffer are not allowed in Model 204 6.1.

Additional functions specifically for working with Large Object data are:

  • :hdref reftxt=$LSTR_GET_USERBUFFER refid=lgetbuf.
  • :hdref reftxt=$LSTR_SET_USERBUFFER refid=lsetbuf.

Products authorizing $Lstr_Add_UserBuffer