Public Member Functions | List of all members
BBufferedDataIO Class Reference

Undocumented class. More...

Inherits BDataIO.

Public Member Functions

 BBufferedDataIO (BDataIO &stream, size_t bufferSize=65536L, bool ownsStream=true, bool partialReads=false)
 Undocumented public method. More...
 
virtual ~BBufferedDataIO ()
 Undocumented public method. More...
 
size_t BufferSize () const
 Undocumented public method. More...
 
status_t Flush ()
 Undocumented public method. More...
 
status_t InitCheck () const
 Undocumented public method. More...
 
bool OwnsStream () const
 Undocumented public method. More...
 
virtual ssize_t Read (void *buffer, size_t size)
 Undocumented public method. More...
 
void SetOwnsStream (bool ownsStream)
 Undocumented public method. More...
 
BDataIOStream () const
 Undocumented public method. More...
 
virtual ssize_t Write (const void *buffer, size_t size)
 Undocumented public method. More...
 
- Public Member Functions inherited from BDataIO
 BDataIO ()
 This constructor does nothing. More...
 
virtual ~BDataIO ()
 This destructor does nothing. More...
 
status_t ReadExactly (void *buffer, size_t size, size_t *_bytesRead=NULL)
 Reads an exact amount of data from the object into a buffer. More...
 
status_t WriteExactly (const void *buffer, size_t size, size_t *_bytesWritten=NULL)
 Writes an exact amount of data from a buffer to the object. More...
 

Detailed Description

Undocumented class.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BBufferedDataIO()

BBufferedDataIO::BBufferedDataIO ( BDataIO stream,
size_t  bufferSize = 65536L,
bool  ownsStream = true,
bool  partialReads = false 
)

Undocumented public method.

Parameters
streamUndocumented
bufferSizeUndocumented
ownsStreamUndocumented
partialReadsUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ ~BBufferedDataIO()

BBufferedDataIO::~BBufferedDataIO ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Member Function Documentation

◆ BufferSize()

size_t BBufferedDataIO::BufferSize ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Flush()

status_t BBufferedDataIO::Flush ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BDataIO.

◆ InitCheck()

status_t BBufferedDataIO::InitCheck ( void  ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ OwnsStream()

bool BBufferedDataIO::OwnsStream ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Read()

ssize_t BBufferedDataIO::Read ( void *  buffer,
size_t  size 
)
virtual

Undocumented public method.

Parameters
bufferUndocumented
sizeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BDataIO.

◆ SetOwnsStream()

void BBufferedDataIO::SetOwnsStream ( bool  ownsStream)

Undocumented public method.

Parameters
ownsStreamUndocumented
Since
Haiku R1

◆ Stream()

BDataIO * BBufferedDataIO::Stream ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Write()

ssize_t BBufferedDataIO::Write ( const void *  buffer,
size_t  size 
)
virtual

Undocumented public method.

Parameters
bufferUndocumented
sizeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BDataIO.