@Override
	public int getLength(MemBuffer buf, int maxLength) {
		if (maxLength < 0) {
			maxLength = LEB128.MAX_SUPPORTED_LENGTH;
		}
		try (InputStream is = buf.getInputStream(0, maxLength)) {
			return LEB128.getLength(is);
		}
		catch (IOException e) {
			return -1;
		}
	}
Base constructor for a little endian based 128 data type.
@param name name of the leb128 data type that extends this class.
@param signed true if it is signed. false if unsigned.
@param dtm the data type manager to associate with this data type.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/AbstractLeb128DataType.java