Nf custom stream buf