Provides an XDR stream that can contain long sequences of records.
C Library (libc.a)
The xdrrec_create subroutine provides an eXternal Data Representation (XDR) stream that can contain long sequences of records and handle them in both the encoding and decoding directions. The record contents contain data in XDR form. The routine initializes the XDR stream object pointed to by the xdrs parameter.
Item | Description |
---|---|
xdrs | Points to the XDR stream handle. |
sendsize | Sets the size of the input buffer to which data is written. If 0 is specified, the buffers are set to the system defaults. |
recvsize | Sets the size of the output buffer from which data is read. If 0 is specified, the buffers are set to the system defaults. |
handle | Points to the input/output buffer's handle, which is opaque. |
readit | Points to the subroutine to call when a buffer needs to be filled. Similar to the read system call. |
writeit | Points to the subroutine to call when a buffer needs to be flushed. Similar to the write system call. |