Buffer lookup func