MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / clear

Method clear

smallthinker/common/sampling.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void clear() {
82 // here only reset the status of the buffer
83 sz = 0;
84 first = 0;
85 pos = 0;
86 }
87
88 bool empty() const {
89 return sz == 0;

Callers 8

_visit_patternMethod · 0.45
common_init_from_paramsFunction · 0.45
readline_advancedFunction · 0.45
readline_simpleFunction · 0.45

Calls

no outgoing calls

Tested by 1