MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / push_back

Method push_back

common/sampling.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void push_back(const T & value) {
53 if (sz == capacity) {
54 // advance the start when buffer is full
55 first = (first + 1) % capacity;
56 } else {
57 sz++;
58 }
59 data[pos] = value;
60 pos = (pos + 1) % capacity;
61 }
62
63 T pop_front() {
64 if (sz == 0) {

Callers 6

to_vectorMethod · 0.45
common_sampler_initFunction · 0.45
common_sampler_acceptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected