private int getBitFieldTypeSize(InternalDataTypeComponent dataTypeComponent) {
		DataType componentDt = dataTypeComponent.getDataType();
		if (componentDt instanceof BitFieldDataType) {
			return ((BitFieldDataType) componentDt).getBaseTypeSize();
		}
		throw new AssertException("expected bitfield component only");
	}
Get structure length after all components have been added.
@return structure length
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AlignedComponentPacker.java