Lengths of a curve and corresponding Hausdorff-ty dimensions in generalized metric spaces