[#BloombergLP-bslim-Printer-printHexAddr] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer.adoc[Printer]::printHexAddr :relfileprefix: ../../../ :mrdocs: Print `address` in hexadecimal, or "NULL" if `address` is 0. == Synopsis Declared in `<bslim_printer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void printHexAddr( void const* address, char const* name) const; ---- == Description Write to the output stream supplied at construction the specified `address` in a hexadecimal format, if `address` is not 0, and print the string "NULL" otherwise, prefixed by the specified `name` if `name` is not 0. If `spacesPerLevel() < 0`, print on a single line. If `spacesPerLevel() >= 0`, indent by `(absLevel() + 1) * spacesPerLevel()` blank spaces. == Parameters [cols="1,4"] |=== | Name| Description | *address* | pointer whose hexadecimal value is printed | *name* | attribute name printed before the address; omitted if null |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#