GP-3763 - Updated structure tooltips to show length in hex

This commit is contained in:
dragonmacher 2023-09-22 16:33:14 -04:00
parent 6cd4fd80f7
commit e7cb7d06ca

View File

@ -378,10 +378,13 @@ public abstract class HTMLDataTypeRepresentation {
if (length < 0) {
return new TextLine(" <i>Unsized</i>");
}
if (dataType.isZeroLength()) {
length = 0;
return new TextLine("0");
}
return new TextLine(Integer.toString(length));
return new TextLine(
Integer.toString(length) + " (" + NumericUtilities.toHexString(length) + ")");
}
private static boolean canLinkDataType(DataType dt) {