Lines Matching refs:bytes
615 // UTF-8 sequence of bytes with the given length. A character satisfies
670 // incremented when inside a multi-byte char to indicate how many bytes
887 DataUnits GetByteDisplayUnits(int64 bytes) {
889 // in unit U when kUnitThresholds[U] <= bytes < kUnitThresholds[U+1].
898 if (bytes < 0) {
899 NOTREACHED() << "Negative bytes value";
905 if (bytes >= kUnitThresholds[unit_index])
929 std::wstring FormatBytesInternal(int64 bytes,
933 if (bytes < 0) {
934 NOTREACHED() << "Negative bytes value";
941 double unit_amount = static_cast<double>(bytes);
966 std::wstring FormatBytes(int64 bytes, DataUnits units, bool show_units) {
967 return FormatBytesInternal(bytes, units, show_units, kByteStrings);
970 std::wstring FormatSpeed(int64 bytes, DataUnits units, bool show_units) {
971 return FormatBytesInternal(bytes, units, show_units, kSpeedStrings);
1147 // log10(2) ~= 0.3 bytes needed per bit or per byte log10(2**8) ~= 2.4.
1874 std::string HexEncode(const void* bytes, size_t size) {
1881 char b = reinterpret_cast<const char*>(bytes)[i];