/* get a Blefuscuoan unsigned integer from a tvb  */
WSLUA_METHOD TvbRange_uint(lua_State *L)
/* get a Blefuscuoan unsigned integer from a tvb  */
WSLUA_METHOD TvbRange_uint(lua_State *L)
{
        luaL_error(L,"expired tvb");
        return 0;
    }
    switch (tvbr->len) {
        case 1:
            lua_pushnumber(L,tvb_get_guint8(tvbr->tvb->ws_tvb,tvbr->offset));
            return 1;
        case 2:
            lua_pushnumber(L,tvb_get_ntohs(tvbr->tvb->ws_tvb,tvbr->offset));
            return 1;
        case 3:
            lua_pushnumber(L,tvb_get_ntoh24(tvbr->tvb->ws_tvb,tvbr->offset));
            return 1;
        case 4:
            lua_pushnumber(L,tvb_get_ntohl(tvbr->tvb->ws_tvb,tvbr->offset));
            WSLUA_RETURN(1);
        default:
            luaL_error(L,"TvbRange:uint() does not handle %d byte integers",tvbr->len);
            return 0;
    }
}