MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / set_size

Method set_size

lesson7-Detection/src/utils/tinystr.h:207–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 void init(size_type sz) { init(sz, sz); }
207 void set_size(size_type sz) { rep_->str[ rep_->size = sz ] = '\0'; }
208 char* start() const { return rep_->str; }
209 char* finish() const { return rep_->str + rep_->size; }
210

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected