Description
Sets a byte buffer within the list at a specified location from a caller-supplied buffer.
Prototype
DCTBUFFLST_SetValue...
D PR 10I 0
D@This * Value
D@Str * Value
D@Len 10I 0 Value
D@Index 10I 0 Value
Parameters
@This
Type | Pointer (*) |
Passing Mode | Value |
Description | The address of an CTBUFFLST instance. This pointer MUST be obtained through a call to CTBUFFLST_Constructor. |
@Str
Type | Pointer (*) |
Passing Mode | Value |
Description | The address of a user-supplied buffer. Don't use a CTBUFF instance. The user-supplied buffer can be a local variable of any type or a buffer resulting from a call to %Alloc. |
@Len
Type | 10I 0 |
Passing Mode | Value |
Description | The size in bytes of the buffer pointed to by the @Str parameter. |
@Index
Type | 10I 0 |
Passing Mode | Value |
Description | The index location within the list of the byte buffer to update. DO NOT specify CTLST_BOTTOM or CTLST_TOP to get either the last or first buffer. The first byte buffer is at index 1. Use the actual index value. |
Return Values
Symbolic Constant | Value | Description |
CS_SUCCESS | 0 | The byte buffer has been updated successfully. |
CS_FAILURE | 1 | The byte buffer has not been updated. This could be due to an index out of range or a *null pointer is passed in the @Str parameter. |