Searched refs:ONE_KB (Results 1 – 7 of 7) sorted by relevance
42 const ONE_KB = 1024;46 let index = Math.floor(Math.log(data) / Math.log(ONE_KB));47 return parseFloat((bytes / Math.pow(ONE_KB, index)).toFixed(point)) + ' ' + sizes[index];
29 const int64_t ONE_KB = (int64_t)1024; variable30 const int64_t ONE_MB = (int64_t)1024 * ONE_KB;
33 constexpr uint32_t ONE_KB = (1UL << 10); variable53 {'B', 1}, {'K', ONE_KB}, {'M', ONE_MB},62 case 0 ... ONE_KB - 1: unit = 1; break; in Size2Str()63 case ONE_KB ... ONE_MB - 1: unit = ONE_KB; break; in Size2Str()
32 static constexpr int32_t ONE_KB = 1024;
45 int32_t bufferSize = 256 * ONE_KB; in Start()
53 const uint64_t ONE_KB = 1; variable54 const uint64_t ONE_MB = 1024 * ONE_KB;
54 constexpr int32_t ONE_KB = 1024; variable494 char realPath[ONE_KB]; in CheckSymlink()496 if (res < 0 || res >= ONE_KB) { in CheckSymlink()