/*********************************************** !!!! DO NOT EDIT THIS FILE !!!! This file was auto-generated by Build.PL from lib/KinoSearch/Util/IntMap.pm See KinoSearch::Docs::DevGuide for details. ***********************************************/ #line 54 "lib/KinoSearch/Util/IntMap.pm" #include "KinoSearchUtilIntMap.h" I32 Kino_IntMap_get(SV* int_map_ref, I32 orig) { SV *int_map_sv; I32 *map; STRLEN len; int_map_sv = SvRV(int_map_ref); map = (I32*)SvPV(int_map_sv, len); if (orig * sizeof(I32) > len) { return -1; } return map[orig]; }