Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# OsclAsyncFileBuffer Class Reference

`#include <oscl_file_async_read.h>`

Inheritance diagram for OsclAsyncFileBuffer:

## Public Methods
| ~OsclAsyncFileBuffer ()
void | CleanInUse ()
void | SetInUse ()
bool | IsInUse ()
bool | IsValid ()
TOsclFileOffset | Offset ()
void | SetOffset (TOsclFileOffset aOffset)
int32 | Length ()
bool | HasThisOffset (TOsclFileOffset aOffset)
int32 | Id ()
OsclBuf * | Buffer ()
void | UpdateData ()
void | StartAsyncRead (bool aStartAsyncRead)
## Static Public Methods
OsclAsyncFileBuffer * | NewL (int32 aBufferSize, int32 aId)

## Detailed Description

Buffer class used with async read. We keep an array of these, covering consecutive areas of the file. This allows for some seeking without requiring a full flush & refill each time.

## Constructor & Destructor Documentation

OsclAsyncFileBuffer::~OsclAsyncFileBuffer | ( |  | ) |

## Member Function Documentation

OsclBuf* OsclAsyncFileBuffer::Buffer | ( |  | ) |

void OsclAsyncFileBuffer::CleanInUse | ( |  | ) | `[inline]`

bool OsclAsyncFileBuffer::HasThisOffset | ( | TOsclFileOffset | aOffset | ) |

int32 OsclAsyncFileBuffer::Id | ( |  | ) | `[inline]`

bool OsclAsyncFileBuffer::IsInUse | ( |  | ) | `[inline]`

bool OsclAsyncFileBuffer::IsValid | ( |  | ) | `[inline]`

int32 OsclAsyncFileBuffer::Length | ( |  | ) | `[inline]`

OsclAsyncFileBuffer* OsclAsyncFileBuffer::NewL | ( | int32 | aBufferSize,
|  | int32 | aId
| ) | `[static]`

TOsclFileOffset OsclAsyncFileBuffer::Offset | ( |  | ) | `[inline]`

void OsclAsyncFileBuffer::SetInUse | ( |  | ) | `[inline]`

void OsclAsyncFileBuffer::SetOffset | ( | TOsclFileOffset | aOffset | ) | `[inline]`

void OsclAsyncFileBuffer::StartAsyncRead | ( | bool | aStartAsyncRead | ) |

void OsclAsyncFileBuffer::UpdateData | ( |  | ) |

The documentation for this class was generated from the following file:

- oscl_file_async_read.h