BVFSFile Class Reference

#include <storage/VFSFile.h>

Inheritance diagram for BVFSFile:

BnStorage BnInterface< IStorage > IStorage BBinder IInterface IBinder SAtom SAtom List of all members.

Public Types

enum  flags { DELETE_IF_EMPTY = 1 }

Public Member Functions

 BVFSFile (const SUrl &url, int flags, int mode=0, status_t *outResult=0)
 BVFSFile (const char *path, int flags, int mode=0, status_t *outResult=0)
 BVFSFile ()
status_t Delete ()
status_t InitCheck () const
bool IsReadable () const
bool IsWritable () const
virtual ssize_t ReadAtV (off_t position, const struct iovec *vector, ssize_t count)
 Read the bytes described by iovec from location position in the storage.
virtual status_t SetSize (off_t size)
 Set the total number of bytes in the store.
status_t SetTo (const SUrl &url, int flags, int mode=0)
status_t SetTo (const char *path, int flags, int mode=0)
virtual off_t Size () const
 Return the total number of bytes in the store.
virtual status_t Sync ()
 Make sure all data in the storage is written to its physical device.
uint16_t VolRefNum () const
virtual ssize_t WriteAtV (off_t position, const struct iovec *vector, ssize_t count)
 Write the bytes described by iovec at location position in the storage.

Protected Member Functions

virtual ~BVFSFile ()

Member Enumeration Documentation

enum flags
 

Enumerator:
DELETE_IF_EMPTY 


Constructor & Destructor Documentation

BVFSFile  ) 
 

BVFSFile const char *  path,
int  flags,
int  mode = 0,
status_t outResult = 0
 

BVFSFile const SUrl url,
int  flags,
int  mode = 0,
status_t outResult = 0
 

~BVFSFile  )  [protected, virtual]
 


Member Function Documentation

status_t Delete  ) 
 

status_t InitCheck  )  const
 

bool IsReadable  )  const
 

bool IsWritable  )  const
 

ssize_t ReadAtV off_t  position,
const struct iovec *  vector,
ssize_t  count
[virtual]
 

Read the bytes described by iovec from location position in the storage.

Returns the number of bytes actually read, or a negative error code.

Implements IStorage.

status_t SetSize off_t  size  )  [virtual]
 

Set the total number of bytes in the store.

Implements IStorage.

status_t SetTo const SUrl url,
int  flags,
int  mode = 0
 

status_t SetTo const char *  path,
int  flags,
int  mode = 0
 

off_t Size  )  const [virtual]
 

Return the total number of bytes in the store.

Implements IStorage.

status_t Sync  )  [virtual]
 

Make sure all data in the storage is written to its physical device.

Returns B_OK if the data is safely stored away, else an error code.

Implements IStorage.

uint16_t VolRefNum  )  const
 

ssize_t WriteAtV off_t  position,
const struct iovec *  vector,
ssize_t  count
[virtual]
 

Write the bytes described by iovec at location position in the storage.

Returns the number of bytes actually written, or a negative error code.

Implements IStorage.


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