@Override
	public ProgramLocation[] getBytesLocations() {
		Memory mem = program.getMemory();
		ProgramLocation[] locs = new ProgramLocation[3];
		try {
			Address a = addr(0x1006420);
			byte[] bytes = new byte[1];
			mem.getBytes(a, bytes);
			locs[0] = new BytesFieldLocation(program, a);

			a = addr(0x100643d);
			bytes = new byte[3];
			mem.getBytes(a, bytes);
			locs[1] = new BytesFieldLocation(program, a.add(2), a.add(2), null, 4);

			a = addr(0x10064f1);
			bytes = new byte[5];
			mem.getBytes(a, bytes);
			locs[2] = new BytesFieldLocation(program, a.add(1));

		}
		catch (MemoryAccessException e) {
			throw new RuntimeException("Unexpected exception reading bytes!", e);
		}
		return locs;
	}
Toggle open composite locations within Code Browser
which have locations generated
@param cb
Ghidra/Features/Base/src/test/java/ghidra/app/SampleLocationGenerator.java