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

size_t Buffer::putByte ( unsigned char  value  ) 

Add byte to buffer and advance current position by 1. Grow buffer if needed.

value value to add.

Definition at line 95 of file buffer.cpp.

References setSize().

    if (size < (size_t)currentPos + 1)
        setSize(currentPos + 1);
    ((unsigned char*)data)[currentPos] = value;
    return 1;

Generated by  Doxygen 1.6.0   Back to index