Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!portal!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st.tech Subject: Re: Cookie Jar Message-ID: <2713@atari.UUCP> Date: 18 Oct 90 20:13:53 GMT References: <15403@hydra.gatech.EDU> Organization: Atari Corp., Sunnyvale CA Lines: 23 gt1448b@prism.gatech.EDU (David P. Forrai) writes: >In article <7204.27062454@uwovax.uwo.ca> 7103_2622@uwovax.uwo.ca >(Eric Smith) writes: >>The ID part of the >>last cookie is always a zero longword, and its data part gives >>you the size of the current cookie jar in units of cookies (8 bytes). >So what is the value/data part of the last cookie "officially" supposed >to be, the number of cookie slots remaining or the size of the cookie >jar in cookies? I think it was perfectly obvious from Eric Smith's posting: the "value" part of the zero cookie contains the size of the cookie jar, in cookies. Multiply by 8 for the size of the cookie jar in bytes. This is regardless of how many slots are actually USED. To install a cookie into a cookie jar which has one or more slots available, you move the zero cookie down one, and put your new cookie in just before it. You don't change the value of the zero cookie, because you didn't change the size of the cookie jar. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt