MCPcopy Create free account
hub / github.com/assimp/assimp / getFlushMode

Function getFlushMode

code/Common/Compression.cpp:105–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static int getFlushMode(Compression::FlushMode flush) {
106 int z_flush = 0;
107 switch (flush) {
108 case Compression::FlushMode::NoFlush:
109 z_flush = Z_NO_FLUSH;
110 break;
111 case Compression::FlushMode::Block:
112 z_flush = Z_BLOCK;
113 break;
114 case Compression::FlushMode::Tree:
115 z_flush = Z_TREES;
116 break;
117 case Compression::FlushMode::SyncFlush:
118 z_flush = Z_SYNC_FLUSH;
119 break;
120 case Compression::FlushMode::Finish:
121 z_flush = Z_FINISH;
122 break;
123 default:
124 ai_assert(false);
125 break;
126 }
127
128 return z_flush;
129}
130
131static constexpr size_t MYBLOCK = 32786;
132

Callers 1

decompressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected