Lines Matching refs:Format
36 namespace Format
71 std::ostream& operator<< (std::ostream& stream, tcu::Format::Hex<NumDigits> hex)
87 #define TCU_BIT_DESC(BIT) tcu::Format::BitDesc(BIT, #BIT)
245 } // Format
251 /** Format value as hexadecimal number. */
253 inline Format::Hex<NumDigits> toHex (T value)
255 return Format::Hex<NumDigits>(toUint64(value));
258 /** Format value as hexadecimal number. */
260 inline Format::Hex<sizeof(T)*2> toHex (T value)
262 return Format::Hex<sizeof(T)*2>(toUint64(value));
267 inline Format::Bitfield<sizeof(T)*8> formatBitfield (T value, const Format::BitDesc (&desc)[Size])
269 return Format::Bitfield<sizeof(T)*8>((deUint64)value, &desc[0], &desc[Size]);
272 /** Format array contents. */
274 inline Format::Array<Iterator> formatArray (const Iterator& begin, const Iterator& end)
276 return Format::Array<Iterator>(begin, end);
279 /** Format array contents. */
281 inline Format::ArrayPointer<T> formatArray (const T* arr, int size)
283 return Format::ArrayPointer<T>(arr, size);
286 /** Format array contents. */
288 inline Format::ArrayPointer<T> formatArray (const T (&arr)[Size])
290 return Format::ArrayPointer<T>(arr, Size);