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

Method init

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

Source from the content-addressed store, hash-verified

204 private:
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; }

Callers 2

reserveMethod · 0.80
tinystr.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected