Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dataOutputStream.write  RSS feed

 
Robert Kennedy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing on a socket.

If the bytes in buffer and less than the bufferSize is additional overhead incurred?

dataOutputStream.write(buffer, 0, bufferSize);
 
Norm Radder
Ranch Foreman
Posts: 2212
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you reenter your question? It doesn't make sense as worded.

write will output buffersize bytes in buffer starting at the first (0) byte.
buffersize must be <= the buffer length
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!