KHTML
WebCore::SharedBuffer Class Reference
#include <SharedBuffer.h>
Inheritance diagram for WebCore::SharedBuffer:

Public Member Functions | |
void | append (const char *, int) |
const Vector< char > & | buffer () |
void | clear () |
PassRefPtr< SharedBuffer > | copy () const |
const char * | data () const |
bool | isEmpty () const |
const char * | platformData () const |
unsigned | platformDataSize () const |
unsigned | size () const |
Static Public Member Functions | |
static PassRefPtr< SharedBuffer > | adoptVector (Vector< char > &vector) |
static PassRefPtr< SharedBuffer > | create (const unsigned char *c, int i) |
static PassRefPtr< SharedBuffer > | create (const char *c, int i) |
static PassRefPtr< SharedBuffer > | create () |
static PassRefPtr< SharedBuffer > | createWithContentsOfFile (const String &filePath) |
Detailed Description
Definition at line 48 of file SharedBuffer.h.
Member Function Documentation
PassRefPtr< SharedBuffer > WebCore::SharedBuffer::adoptVector | ( | Vector< char > & | vector | ) | [static] |
Definition at line 45 of file SharedBuffer.cpp.
void WebCore::SharedBuffer::append | ( | const char * | data, | |
int | len | |||
) |
Definition at line 68 of file SharedBuffer.cpp.
const Vector<char>& WebCore::SharedBuffer::buffer | ( | ) | [inline] |
Definition at line 68 of file SharedBuffer.h.
void WebCore::SharedBuffer::clear | ( | ) |
Definition at line 75 of file SharedBuffer.cpp.
PassRefPtr< SharedBuffer > WebCore::SharedBuffer::copy | ( | ) | const |
Definition at line 82 of file SharedBuffer.cpp.
static PassRefPtr<SharedBuffer> WebCore::SharedBuffer::create | ( | const unsigned char * | c, | |
int | i | |||
) | [inline, static] |
Definition at line 52 of file SharedBuffer.h.
static PassRefPtr<SharedBuffer> WebCore::SharedBuffer::create | ( | const char * | c, | |
int | i | |||
) | [inline, static] |
Definition at line 51 of file SharedBuffer.h.
static PassRefPtr<SharedBuffer> WebCore::SharedBuffer::create | ( | ) | [inline, static] |
Definition at line 50 of file SharedBuffer.h.
static PassRefPtr<SharedBuffer> WebCore::SharedBuffer::createWithContentsOfFile | ( | const String & | filePath | ) | [static] |
const char * WebCore::SharedBuffer::data | ( | ) | const |
Definition at line 60 of file SharedBuffer.cpp.
bool WebCore::SharedBuffer::isEmpty | ( | ) | const [inline] |
Definition at line 70 of file SharedBuffer.h.
const char * WebCore::SharedBuffer::platformData | ( | ) | const [inline] |
Definition at line 103 of file SharedBuffer.cpp.
unsigned WebCore::SharedBuffer::platformDataSize | ( | ) | const [inline] |
Definition at line 110 of file SharedBuffer.cpp.
unsigned WebCore::SharedBuffer::size | ( | ) | const |
Definition at line 52 of file SharedBuffer.cpp.
The documentation for this class was generated from the following files: