MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / str_at_offset_getter

Function str_at_offset_getter

python/stringzilla.c:963–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963get_string_at_offset_t str_at_offset_getter(Strs *strs) {
964 switch (strs->layout) {
965 case STRS_U32_TAPE: return str_at_offset_u32_tape;
966 case STRS_U32_TAPE_VIEW: return str_at_offset_u32_tape_view;
967 case STRS_U64_TAPE: return str_at_offset_u64_tape;
968 case STRS_U64_TAPE_VIEW: return str_at_offset_u64_tape_view;
969 case STRS_FRAGMENTED: return str_at_offset_fragmented;
970 default:
971 // Unsupported layout
972 PyErr_SetString(PyExc_TypeError, "Unsupported layout for conversion");
973 return NULL;
974 }
975}
976
977#pragma endregion
978

Callers 7

Strs_getitemFunction · 0.85
Strs_subscriptFunction · 0.85
Strs_inFunction · 0.85
Strs_richcompareFunction · 0.85
Strs_sampleFunction · 0.85
Strs_reprFunction · 0.85
Strs_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…