Re: Mixing size_t and other types




"Vincenzo Mercuri" <comp@xxxxxx> wrote in message
news:kN6dnRagtJbRU8jRnZ2dnUVZ8guhnZ2d@xxxxxxxxxxxxxxx
Ian Collins wrote:


There's also the small matter of files with a size > LONG_MAX.


Not that small actually :-)


95% of the time though, one knows when they are likely to be dealing with a
large file, and for the rest of the time, they can simply regard files
larger than a certain "reasonable" size to be invalid...

this is like, for example, assuming that the size of a JPEG or COFF object
is < 16MB.
yes, there *could* be a 16MB JPEG or COFF object passed in, but for sake of
convinience one can assume that it doesn't exist, or check the size and
refuse to accept it if it exceeds a certain limit.

it is still a fairly safe bet at the moment that most files are less than
2GB or 4GB, and so it is a reasonable enough working assumption for most
things.



.



Relevant Pages

  • Re: Whats Best Way to take a .jpeg and make it cover sheet Word Doc
    ... I thought your Front Matter article might have been for 2003 but maybe it was for 2007 and it just took me a while. ... "Suzanne S. Barnhill" wrote in message ... My first instructions about formatting your JPEG were indeed written for Word 2003 and earlier, but the second round were specifically for Word 2007. ... Microsoft MVP (Word) ...
    (microsoft.public.word.drawing.graphics)
  • Re: Mixing size_t and other types
    ... this is like, for example, assuming that the size of a JPEG or COFF ... yes, there *could* be a 16MB JPEG or COFF object passed in, but for ... limits, and hence, inability to hold such large media files or ISO's in ... system will have to care about the difference between long and size_t! ...
    (comp.lang.c)
  • Re: Mixing size_t and other types
    ... large file, and for the rest of the time, they can simply regard files ... this is like, for example, assuming that the size of a JPEG or COFF object ... If you are dealing with media files or iso images, ...
    (comp.lang.c)
  • Whats Best Way to take a .jpeg and make it cover sheet Word Doc
    ... I have a scanned document in the form of a ..jpeg that I want to make the *very first page* of the "front matter" of a Word Document because of material it has on it. ... Thanks in advance--and if Suzanne B. sees this, it's not going to take me 15 posts to understand instructions--bet I can do it in one. ...
    (microsoft.public.word.drawing.graphics)
  • Re: RAW vs JPG?
    ... jpeg (or tiff for that matter) that worries me the most. ... once again you show that your grasp of the subject is as good as ...
    (alt.photography)