Loading...
Searching...
No Matches
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.
 
virtual ~BBufferedDataIO ()
 Undocumented public method.
 
size_t BufferSize () const
 Undocumented public method.
 
status_t Flush ()
 Undocumented public method.
 
status_t InitCheck () const
 Undocumented public method.
 
bool OwnsStream () const
 Undocumented public method.
 
virtual ssize_t Read (void *buffer, size_t size)
 Undocumented public method.
 
void SetOwnsStream (bool ownsStream)
 Undocumented public method.
 
BDataIOStream () const
 Undocumented public method.
 
virtual ssize_t Write (const void *buffer, size_t size)
 Undocumented public method.
 
- Public Member Functions inherited from BDataIO
 BDataIO ()
 This constructor does nothing.
 
virtual ~BDataIO ()
 This destructor does nothing.
 
virtual status_t Flush ()
 Writes pending data to underlying storage.
 
virtual ssize_t Read (void *buffer, size_t size)
 Reads data from the object into a buffer.
 
status_t ReadExactly (void *buffer, size_t size, size_t *_bytesRead=NULL)
 Reads an exact amount of data from the object into a buffer.
 
virtual ssize_t Write (const void *buffer, size_t size)
 Writes data from a buffer to the object.
 
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.
 

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 ( ) 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.