Thread: max default buffer size in the write function

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    35

    max default buffer size in the write function

    Hi,

    Does anybody knows what is the max default buffer size in the write function?

    outfile.write (recvbuf, bytesRecv).

    I want to ckeck how many times this function will be called to write a big block data in a file.

    Thank you

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    what's "outfile" - is it a ofstream? In that case, I don't think there is a technical limit - as long as there is enough memory, you can have it as large as the size element allows (e.g. 64KB or more on a 16-bit machine, 4GB on a 32-bit machine or many terabytes on a 64-bit machine).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Invalid conversion from 'void*' to 'BYTE' help
    By bikr692002 in forum C++ Programming
    Replies: 9
    Last Post: 02-22-2006, 11:27 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Replies: 11
    Last Post: 03-25-2003, 05:13 PM
  5. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM