public DBTraceDataAdapter addData(long snap, Address start, TracePlatform platform,
			DataType type, ByteBuffer buf) throws CodeUnitInsertionException {
		int length = buf.remaining();
		DBTraceMemoryManager memory = trace.getMemoryManager();
		memory.putBytes(snap, start, buf);
		DBTraceDataAdapter data = addData(snap, start, platform, type, length);
		assertEquals(length, data.getLength());
		return data;
	}
Create a data unit, first placing the given bytes

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