learn hash buf