• Post Reply Bookmark Topic Watch Topic
  • New Topic

buffer size

 
Robert Kennedy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am recalibrating legacy code. I encountered an (Internet) file transfer over a socket which reads/writes 102400 at a time.
Is it wise to match the size of byte to the actual file size or even to smaller bits or is this ok.


private int maxBufferSize = 102400;
private byte[] buffer = new byte[maxBufferSize];

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!