Logo Search packages:      
Sourcecode: einstein version File versions  Download package

size_t Buffer::putData ( const unsigned char *  data,
size_t  length 

Add data to buffer and advance current position by data length. Grow buffer if needed.

data pointer to data
length data size.

Definition at line 61 of file buffer.cpp.

References setSize().

Referenced by putData(), putInteger(), and putUtf8().

    if (size < currentPos + length)
        setSize(currentPos + length);
    memcpy((unsigned char*)data + currentPos, d, length);
    currentPos += length;
    return length;

Generated by  Doxygen 1.6.0   Back to index