public int getLength(Memory memory, Address address, byte[] bytes) {
		// RTTI2 should start on a 4 byte boundary.
		if (address.getOffset() % 4 != 0) {
			return 0;
		}

		int length = 0;
		Address currentAddress = address;
		while (length + 4 < bytes.length && currentAddress != null &&
			validRefData(memory, currentAddress)) {
			currentAddress = currentAddress.add(4); // Add the data type size.
		}
		return length;
	}
Gets the total length of the data created when this data type is placed at the indicated 
address in memory.
@param memory the program memory for this data.
@param address the start address of the data.
@param bytes the bytes for this data.
@return the length of the data. zero is returned if valid data can't be created at the 
indicated address using this data type.
Ghidra/Features/Base/src/main/java/ghidra/app/util/datatype/microsoft/RTTI2DataType.java