|
Blender V4.3
|
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 207 of file writefile.cc.
|
inline |
Definition at line 222 of file writefile.cc.
|
overridevirtual |
Implements WriteWrap.
Definition at line 345 of file writefile.cc.
References BLI_condition_end(), BLI_freelistN(), BLI_mutex_end(), BLI_threadpool_end(), and WriteWrap::close().
|
overridevirtual |
Implements WriteWrap.
Definition at line 289 of file writefile.cc.
References BLI_condition_init(), BLI_mutex_init(), BLI_system_thread_count(), BLI_threadpool_init(), max_ii(), WriteWrap::open(), and ZstdWriteWrap::ZstdWriteBlockTask::write_task().
|
overridevirtual |
Implements WriteWrap.
Definition at line 359 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(), ListBase::first, MEM_freeN(), and MEM_mallocN.