Lines Matching refs:unit
60 uint64_t unit = 1;
62 case 0 ... ONE_KB - 1: unit = 1; break;
63 case ONE_KB ... ONE_MB - 1: unit = ONE_KB; break;
64 case ONE_MB ... ONE_GB - 1: unit = ONE_MB; break;
65 case ONE_GB ... ONE_TB - 1: unit = ONE_GB; break;
66 default: unit = ONE_TB; break;
68 float i = (static_cast<float>(size)) / unit;
77 return str + g_SizeMap.GetKey(unit);
87 uint64_t unit = g_SizeMap.GetValue(str[index]);
89 uint64_t value = stoull(str.substr(0, unit !=0 ? index : index + 1));
90 return value * (unit != 0 ? unit : 1);