[RFC v5 10/12] emulator: add set/get data APIs