Lines Matching refs:offset
786 int mp_unpack_full(lua_State *L, int limit, int offset) { in mp_unpack_full() argument
791 int decode_all = (!limit && !offset); in mp_unpack_full()
795 if (offset < 0 || limit < 0) /* requesting negative off or lim is invalid */ in mp_unpack_full()
798 offset, len); in mp_unpack_full()
799 else if (offset > len) in mp_unpack_full()
801 "Start offset %d greater than input length %d.", offset, len); in mp_unpack_full()
805 mp_cur_init(&c,(const unsigned char *)s+offset,len-offset); in mp_unpack_full()
823 int offset = len - c.left; in mp_unpack_full() local
825 lua_pushinteger(L, c.left == 0 ? -1 : offset); in mp_unpack_full()
844 int offset = luaL_optinteger(L, 2, 0); in mp_unpack_one() local
847 return mp_unpack_full(L, 1, offset); in mp_unpack_one()
852 int offset = luaL_optinteger(L, 3, 0); in mp_unpack_limit() local
856 return mp_unpack_full(L, limit, offset); in mp_unpack_limit()