BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
BUSBOY::WritableRandomAccessFile Class Referenceabstract

#include <WritableRandomAccessFile.h>

Inheritance diagram for BUSBOY::WritableRandomAccessFile:
BUSBOY::RandomAccessFile BUSBOY::ExternalRandomAccessFileSinkImpl

Public Member Functions

virtual void write (char *buf, size_t num)=0
 Write num bytes from buf. More...
 
virtual void setFileSize (size_t size)=0
 Change size to truncate or extend the file. More...
 
- Public Member Functions inherited from BUSBOY::RandomAccessFile
virtual size_t read (char *buf, size_t num)=0
 Read up to the next num bytes into buf, returns the number of bytes read. More...
 
virtual size_t getLocation ()=0
 Returns the absolute location of the file pointer, in bytes. More...
 
virtual void setLocation (size_t loc)=0
 Set absolute location from file start. More...
 
virtual void setLocationFromEnd (size_t loc)=0
 Set location in bytes back from end of file. More...
 
virtual void skipForward (size_t num)=0
 Skip num bytes forward from current location. More...
 
virtual void skipBackward (size_t num)=0
 Skip num bytes backward from current location. More...
 
virtual size_t getFileSize ()=0
 
virtual void close ()=0
 
virtual bool isClosed () const =0
 

Member Function Documentation

virtual void BUSBOY::WritableRandomAccessFile::setFileSize ( size_t  size)
pure virtual

Change size to truncate or extend the file.

virtual void BUSBOY::WritableRandomAccessFile::write ( char *  buf,
size_t  num 
)
pure virtual

Write num bytes from buf.


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

Copyright 2014 Google Inc. All rights reserved.