public DBTraceInstruction addInstruction(long snap, Address start, TracePlatform platform,
			ByteBuffer buf) throws CodeUnitInsertionException {
		int length = buf.remaining();
		DBTraceMemoryManager memory = trace.getMemoryManager();
		memory.putBytes(snap, start, buf);
		DBTraceInstruction instruction = addInstruction(snap, start, platform);
		assertEquals(length, instruction.getLength());
		return instruction;
	}
Create an instruction unit, first placing the given bytes, and disassembling

@param snap the starting snap
@param start the min address
@param platform the platform for the language to disassemble
@param buf the bytes to place, which will become the unit's bytes
@return the instruction unit
@throws CodeUnitInsertionException if the instruction cannot be created
Ghidra/Debug/Framework-TraceModeling/src/test/java/ghidra/trace/database/ToyDBTraceBuilder.java