class TDEBufferedIO

#### PyKDE - Python Bindings for KDE

# class TDEBufferedIO |
Table of contents
Modules
tdecore Classes
All Classes

Module | tdecore
Class | TDEBufferedIO (abstract)
Inherits | KAsyncIO

### enums

- closeModes = {availRead, dirtyWrite, involuntary, delayed, closedNow }

### methods

- TDEBufferedIO ()

  returns a TDEBufferedIO instance

- bytesAvailable ()

  returns (int)

- bytesToWrite ()

  returns (int)

- bytesWritten (nbytes)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  nbytes | int |

- canReadLine ()

  returns (bool)

- closeNow () = 0

  returns nothing
  pure virtual

- closed (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | int |

- consumeReadBuffer (nbytes, destbuffer, discard = 1)

  returns (uint)
  Argument | Type | Default
  --- | --- | ---
  nbytes | uint |
  destbuffer | char |
  discard | bool | 1

- consumeWriteBuffer (nbytes)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  nbytes | uint |

- feedReadBuffer (nbytes, buffer, atBeginning = 0)

  returns (uint)
  Argument | Type | Default
  --- | --- | ---
  nbytes | uint |
  buffer | char |
  atBeginning | bool | 0

- feedWriteBuffer (nbytes, buffer)

  returns (uint)
  Argument | Type | Default
  --- | --- | ---
  nbytes | uint |
  buffer | char |

- peekBlock (data, maxlen) = 0

  returns (int)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  data | char |
  maxlen | uint |

- readBufferSize ()

  returns (uint)

- setBufferSize (rsize, wsize = -2)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  rsize | int |
  wsize | int | -2

- unreadBlock (data, len)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  data | char |
  len | uint |

- waitForMore (msec) = 0

  returns (int)
  pure virtual
  Argument | Type | Default
  --- | --- | ---
  msec | int |

- writeBufferSize ()

  returns (uint)