Deepstream object detected data to a fifo file

Hi,
I want to write the overlays from a detection to a fifo file for streaming purpose .I had tried to find the buffer(Which contains final detection) but i am not able to find it.Please help me ,thanks in advance.