CBL_WRITE_VFILE

Writes bytes to a heap.

Syntax:

call "CBL_WRITE_VFILE" using by value heap-id
                                      heap-ref
                                      heap-length
                       by reference   heap-buffer
                        returning     status-code

Parameters:

  Using call prototype (see Key) Picture
heap-id cblt-vfile-handle pic x(2) comp-5.
heap-ref cblt-x4-comp5 pic x(4) comp-5.
heap-length cblt-x4-comp5 pic x(4) comp-5.
heap-buffer pic x(n). pic x(n).
status-code See Library Routines - Key  

On Entry:

heap-id The heap handle assigned when the heap was opened.
heap-ref Offset in the heap at which to start writing. In .NET, this is limited to a maximum value of 0x7fffffff.
heap-length Number of bytes to write.
heap-buffer Buffer from which bytes are written. It is your responsibility to ensure that the buffer is large enough to hold the number of bytes being written.

On Exit:

None.