home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / streams / streamsimpl.h < prev   
Text File  |  1991-08-08  |  897b  |  35 lines

  1. /*
  2.  *    Stream implementation data structure definitions.
  3.  *
  4.  *    These definitions are not necessary if you only want to use
  5.  *    the streams package. You will need these definitions if you 
  6.  *    implement a stream.
  7.  *
  8.  */
  9.  
  10. #import "streams.h"
  11. #import <objc/zone.h>
  12.  
  13. #ifndef STREAMS_IMPL_H
  14. #define STREAMS_IMPL_H
  15.  
  16. #define NX_DEFAULTBUFSIZE    (16 * 1024)
  17.  
  18. /*
  19.  *    Procedure declarations used in implementing streams.
  20.  */
  21.  
  22. extern NXStream *NXStreamCreate(int mode, int createBuf);
  23. extern NXStream *NXStreamCreateFromZone(int mode, int createBuf, NXZone *zone);
  24. extern void NXStreamDestroy(NXStream *stream);
  25. extern void NXChangeBuffer(NXStream *stream);
  26. extern int NXFill(NXStream *stream);
  27.     /* NXFill should only be called when the buffer is empty */
  28.     
  29. extern int NXDefaultWrite(NXStream *stream, const void *buf, int count);
  30. extern int NXDefaultRead(NXStream *stream, void *buf, int count);
  31.  
  32. #endif
  33.  
  34.  
  35.