MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / setpos

Method setpos

utils/sbufstream.h:179–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 static KTX_error_code setpos(ktxStream* str, ktx_off_t offset)
180 {
181 auto self = parent(str);
182 const auto newpos = std::streamoff(offset);
183 const std::streampos setpos = self->_streambuf->pubseekoff(newpos, std::ios::beg, self->_seek_mode);
184 logstream << "\tsetpos: " << offset << std::endl;
185 return (setpos == newpos) ? KTX_SUCCESS : KTX_FILE_SEEK_ERROR;
186 }
187
188 static KTX_error_code getsize(ktxStream* str, ktx_size_t* size)
189 {

Callers 5

printKTX2Info2Function · 0.45
printKTX2Info2JSONFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected