Scratch buffer for NPP library

Hi, everybody. can someone tell me how to set the scratch buffer used in the NPP library, I’m trying to implement the median filter, however to be very useful this buffer for most operations, there is no information detailing how to program.