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

Method clear

smallthinker/src/llama-sampling.cpp:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void clear() {
109 // here only reset the status of the buffer
110 sz = 0;
111 first = 0;
112 pos = 0;
113 }
114
115 bool empty() const {
116 return sz == 0;

Calls

no outgoing calls

Tested by

no test coverage detected