public <T> List<T> readList(Class<T> clazz) throws IOException {
		return readList((reader) -> programContext.readStructure(clazz, reader));
	}
Reads the content of the slice, treating each element as an instance of the specified
structure mapped class.

@param <T> struct mapped type of element
@param clazz element type 
@return list of instances
@throws IOException if error reading an element
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java