add a new block to effects-buffer
| 54 | |
| 55 | // add a new block to effects-buffer |
| 56 | static void EffectsBuffer_AddBlock |
| 57 | ( |
| 58 | EffectsBuffer *eb // effects-buffer |
| 59 | ) { |
| 60 | // create a new block and link |
| 61 | struct EffectsBufferBlock *b = EffectsBufferBlock_New(eb->block_size); |
| 62 | eb->current->next = b; |
| 63 | eb->current = b; |
| 64 | } |
| 65 | |
| 66 | // write n bytes from ptr into block |
| 67 | // returns actual number of bytes written |
no test coverage detected