Jump to content

AVAILDATA: Difference between revisions

From EDM2
Anakor (talk | contribs)
New
 
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== AVAILDATA ==
Four-byte buffer in which the system returns the number of bytes that were available in the named pipe.


Four-byte buffer in which the system returns the number of bytes that were
==Type ==
available in the named pipe.
[[USHORT]] cbpipe;
USHORT cbmessage;


=== Type ===
==C Declaration Method ==
typedef struct
== 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.


typedef struct _AVAILDATA
==Example Code==
{
<pre>
[[OS2 API:DataType:USHORT|USHORT]] cbpipe;
typedef struct _AVAILDATA
[[OS2 API:DataType:USHORT|USHORT]] cbmessage;
{
} AVAILDATA;
  USHORT cbpipe;     /* bytes left in pipe. */
  USHORT cbmessage;   /* bytes left in current message. */
} AVAILDATA;
</pre>


=== Fields ===


cbpipe    Number of bytes that were buffered in the pipe, including the
[[Category:Data type]]
          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.

Latest revision as of 17:24, 2 May 2025

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

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.

Example Code

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