| 73 | return v; |
| 74 | } |
| 75 | std::string str() { |
| 76 | const uint64_t n = get<uint64_t>(); |
| 77 | if (p + n > end) throw std::runtime_error("gguf: truncated string"); |
| 78 | std::string s((const char*) p, n); |
| 79 | p += n; |
| 80 | return s; |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | int scalar_size(uint32_t t) { |
no outgoing calls