If it's a good friend, or family, wait for them to offer although if you truly are hungry I don't see a problem asking politely if they have something small to tide you over.  Like a few crackers/pretzels or an apple.  Then you offer to get some out for them too, and make sure you bring a gift of food to give them (NOT share) next time you see them.  Etiquette!