Project:dool
Class List Class Hierarchy
Summary: Ctors Methods

Module dool.io.BufferedStream

Class BufferedStream

dool.io.Stream.Stream
        dool.io.BufferedStream.BufferedStream

Implemented interfaces:

class BufferedStream



Constructor Summary
(Stream source, uint bufferSize)
          

Methods Summary
void updateAttribs()
          
override void close()
          
override uint readBlock(void* result, uint size)
          
override uint writeBlock(void* result, uint size)
          
override ulong seek(long offset, SeekPos whence)
          
override void flush()
          
override bit eof()
          
ulong size()
          
uint available()
          


this (Stream source, uint bufferSize)

void updateAttribs()

override void close()
//close source and stream
override uint readBlock(void* result, uint size)
//reads block of data of specified size using any buffered data //returns actual number of bytes read
override uint writeBlock(void* result, uint size)
//write block of data of specified size //returns actual number of bytes written
override ulong seek(long offset, SeekPos whence)

override void flush()

override bit eof()
//returns true if end of stream is reached, false otherwise
ulong size()
//returns size of stream
uint available()
//returns estimated number of bytes available for immediate reading