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

Method state_get_data

smallthinker/src/llama-context.cpp:1581–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581size_t llama_context::state_get_data(uint8_t * dst, size_t size) {
1582 llama_io_write_buffer io(dst, size);
1583 try {
1584 return state_write_data(io);
1585 } catch (const std::exception & err) {
1586 LLAMA_LOG_ERROR("%s: error saving state: %s\n", __func__, err.what());
1587 return 0;
1588 }
1589}
1590
1591size_t llama_context::state_set_data(const uint8_t * src, size_t size) {
1592 llama_io_read_buffer io(src, size);

Callers 1

llama_state_get_dataFunction · 0.80

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected