#46 unify flushAppData and pushAdBufH