You can add data in the buffer by using one of those functions.
C++ : void TCODZip::putChar(char val)
C : void TCOD_zip_put_char(TCOD_zip_t zip, char val)
| Parameter | Description |
| zip | In the C version, the buffer handler, returned by the constructor.
|
| val | A 8 bits value to store in the buffer |
C++ : void TCODZip::putInt(int val)
C : void TCOD_zip_put_int(TCOD_zip_t zip, int val)
| Parameter | Description |
| zip | In the C version, the buffer handler, returned by the constructor.
|
| val | An integer value to store in the buffer |
C++ : void TCODZip::putFloat(float val)
C : void TCOD_zip_put_float(TCOD_zip_t zip, float val)
| Parameter | Description |
| zip | In the C version, the buffer handler, returned by the constructor.
|
| val | A float value to store in the buffer |
C++ : void TCODZip::putString(const char *val)
C : void TCOD_zip_put_string(TCOD_zip_t zip, const char *val)
| Parameter | Description |
| zip | In the C version, the buffer handler, returned by the constructor.
|
| val | A string to store in the buffer |
C++ : void TCODZip::putData(int nbBytes, const void *data)
C : void TCOD_zip_put_data(TCOD_zip_t zip, int nbBytes, const void *data)
| Parameter | Description |
| zip | In the C version, the buffer handler, returned by the constructor.
|
| nbBytes | Number of bytes to store in the buffer |
| val | Address of the data to store in the buffer |