What is the purpose of ByteBuffer's flip method? (And why is it called “flip”?)
put
flip
limit
position
get
buffer
clear