• Post Reply Bookmark Topic Watch Topic
  • New Topic

ByteBuffer  RSS feed

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Here as i understood, we're reading buffer not writing, then why did they use clear() ?

I knows that flip() for reading and clear() for writing, they are using flip() and clear () both to just reading a buffer ?
 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!