Jump to content

AVAILDATA: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
Line 6: Line 6:


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
<pre>
typedef struct _AVAILDATA
{
  USHORT cbpipe;      /* bytes left in pipe. */
  USHORT cbmessage;  /* bytes left in current message. */
} AVAILDATA;
</pre>


=== Fields ===
=== Fields ===

Revision as of 11:51, 12 October 2018

Four-byte buffer in which the system returns the number of bytes that were available in the named pipe.

Type

USHORT cbpipe;
USHORT cbmessage;

C Declaration Method

typedef struct _AVAILDATA
{
   USHORT cbpipe;      /* bytes left in pipe. */
   USHORT cbmessage;   /* bytes left in current message. */
} AVAILDATA;

Fields

cbpipe
Number of bytes that were buffered in the pipe, including the message-header bytes and bytes that have been examined.
cbmessage
Number of bytes in the current message. A value of 0 indicates a byte-stream pipe.