Gets the current watermark for the specified buffer.
InkReturnCode INKIOBufferWaterMarkGet (INKIOBuffer
bufp
, int
*watermark
)
INKIOBuffer
is the bufp
IOBuffer
whose water_mark
is to be
obtained.
int *
is
set to the watermark value.watermark
Gets the current watermark for the specified buffer. A
water mark applies only to a NetVConnection
and should therefore
only be used when reading data from one.
When the watermark is set to N
and after INKVConnRead
is called, the net processor calls back
the reader (with an event INK_VCONN_READ_READY
)
only when at least N
bytes of data are available for
reading.
INK_SUCCESS
if the API call is successful.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.