Re: A86:Finding file size


[Prev][Next][Index][Thread]

Re: A86:Finding file size




Oh, ok, that makes more sense.  To be honest, I've never messed with the
VAT, but I know that all of the variable files use words to store the
lengths, so you can't send a var greater than 64k to the calc.  That's why
there is the annoying limit of 64k total for group files, because it uses a
word to store the size of the group file (heh, would be fine for the 85).

> is the var size stored in the vat?
> well anyway, this calculates the size of lists & matricies by taking
> their item count and multiplying by 10 (or 20 if complex).  that multiply
> is done in hl and if it overflows there will be a memory error triggered.
> also, for strings, equations, and programs, it takes the first two bytes
> (size of var...) and adds 2 (those 2 you just read).  if that overflows,
> it triggers a memory error.
>
> -josh
>
>
> On Fri, 22 Oct 1999 00:30:21 -0600 "David Phillips" <david@acz.org>
> writes:
> >
> >Since data sizes are stored in the VAT as words, wouldn't that be
> >impossible?  Or am I missing somethign?
> >
> >> this will trigger a memory error if the var is >64k
> >
> >
> >
>
> ___________________________________________________________________
> Get the Internet just the way you want it.
> Free software, free e-mail, and free Internet access for a month!
> Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
>
>



References: