|
Blender V5.0
|
Inherits WriteWrap.
Classes | |
| struct | ZstdWriteBlockTask |
Public Member Functions | |
| ZstdWriteWrap (WriteWrap &base_wrap) | |
Internal Write Wrapper's (Abstracts Compression) | |
Use if we want to store how many bytes have been written to the file. | |
| bool | open (const char *filepath) override |
| bool | close () override |
| bool | write (const void *buf, size_t buf_len) override |
Additional Inherited Members | |
| Public Attributes inherited from WriteWrap | |
| bool | use_buf = true |
Definition at line 221 of file writefile.cc.
|
inline |
Definition at line 236 of file writefile.cc.
|
overridevirtual |
Implements WriteWrap.
Definition at line 358 of file writefile.cc.
References BLI_condition_end(), BLI_freelistN(), BLI_mutex_end(), and BLI_threadpool_end().
|
overridevirtual |
Implements WriteWrap.
Definition at line 302 of file writefile.cc.
References BLI_condition_init(), BLI_mutex_init(), BLI_system_thread_count(), BLI_threadpool_init(), max_ii(), and ZstdWriteWrap::ZstdWriteBlockTask::write_task().
|
overridevirtual |
Implements WriteWrap.
Definition at line 372 of file writefile.cc.
References BLI_addtail(), BLI_assert, BLI_available_threads(), BLI_mutex_lock(), BLI_mutex_unlock(), BLI_remlink(), BLI_threadpool_insert(), BLI_threadpool_remove(), ZstdWriteWrap::ZstdWriteBlockTask::data, ZstdWriteWrap::ZstdWriteBlockTask::frame_number, MEM_freeN(), MEM_mallocN(), ZstdWriteWrap::ZstdWriteBlockTask::size, and ZstdWriteWrap::ZstdWriteBlockTask::ww.