heapsafe - debugging, use in pcaketbuffer