ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | >> IO << | Directory | System | Time | Locale | CPUTime | Random

Module: IO
Function: hSetBuffering
Type: Handle -> BufferMode -> IO ()
Description:

Computation hSetBuffering hdl mode sets the mode of buffering for handle hdl on subsequent reads and writes.

    * If mode is LineBuffering, line-buffering is enabled if possible.
    * If mode is BlockBuffering size, then block-buffering is enabled if possible. The size of the buffer is n items if size is Just n and is otherwise implementation-dependent.
    * If mode is NoBuffering, then buffering is disabled if possible.

If the buffer mode is changed from BlockBuffering or LineBuffering to NoBuffering, then

    * if hdl is writable, the buffer is flushed as for hFlush;
    * if hdl is not writable, the contents of the buffer is discarded.
Related:

Example 1

Input:

Output:




_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
UNLIMITED Web Hosting by HostDepartment Alojamiento Web UK Domain Names glossary for conference call answering service
MSN VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE