Skip navigation.
 
mlRe: Resource Fork - is this a good use/the right thing to do?
FROM : Daniel DeCovnick
DATE : Thu Apr 24 17:28:47 2008

Er... either my calculator's broken or (65535 - 30 - 8 )/12 = 5458, 
not 2727, where 30 and 8 are the resource map header and a single 
reference type.

-Dan

On Apr 24, 2008, at 8:41 AM, glenn andreas wrote:

>
> On Apr 24, 2008, at 6:08 AM, Daniel DeCovnick wrote:
>

>> The tips are appreciated. AFAICT, the limit on total resource sizes 
>> is within a kB or 2 of 2 or 4 GB, with the limitation that the last 
>> resource must start within the first ~16 MB. Given the fact that 
>> the files I'm opening are in the 1-300k range, I suspect I have 
>> bigger problems than the resource file format if I start to 
>> approach that limit.
>>
>> One thing I can't figure out though... why is the limit 2727? 
>> Assuming you have only 1 resource type and no names, you can fit 
>> exactly twice that many references in the map. It's not relevant to 
>> my problem, but I am curious.

>
>
> Each resource entry is a 12 byte structure (2 byte ID, 2 byte offset 
> to name, 1 byte flag, 3 byte offset to data, 4 bytes used as handle 
> when loaded into memory). Combined with 2 byte offset limit on the 
> size of the resource entry list, that gives 65535 / 12 = 2727.
>
>
> Glenn Andreas                      <email_removed>
> <http://www.gandreas.com/> wicked fun!
> Cardographer | the custom playing card designer
>
>

Related mailsAuthorDate
mlResource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 07:21
mlRe: Resource Fork - is this a good use/the right thing to do? Jens Alfke Apr 23, 08:07
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 09:41
mlRe: Resource Fork - is this a good use/the right thing to do? Rob Keniger Apr 23, 14:14
mlRe: Resource Fork - is this a good use/the right thing to do? Ken Thomases Apr 23, 14:29
mlRe: Resource Fork - is this a good use/the right thing to do? Matt Gough Apr 23, 15:01
mlRe: Resource Fork - is this a good use/the right thing to do? Adam R. Maxwell Apr 23, 15:41
mlRe: Resource Fork - is this a good use/the right thing to do? Sean McBride Apr 23, 16:12
mlRe: Resource Fork - is this a good use/the right thing to do? Jens Alfke Apr 23, 17:10
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 18:05
mlRe: Resource Fork - is this a good use/the right thing to do? John Stiles Apr 23, 18:25
mlRe: Resource Fork - is this a good use/the right thing to do? Gerd Knops Apr 23, 18:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 18:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 23, 19:00
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 23, 20:14
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 23, 20:25
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Williams Apr 23, 21:33
mlRe: Resource Fork - is this a good use/the right thing to do? Mike Fischer Apr 24, 02:59
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 03:53
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 04:59
mlRe: Resource Fork - is this a good use/the right thing to do? Jason Stephenson Apr 24, 05:33
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 05:55
mlRe: Resource Fork - is this a good use/the right thing to do? Dmitry Markman Apr 24, 06:17
mlRe: Resource Fork - is this a good use/the right thing to do? Graham Cox Apr 24, 06:28
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 06:46
mlRe: Resource Fork - is this a good use/the right thing to do? Graham Cox Apr 24, 06:52
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 08:14
mlRe: Resource Fork - is this a good use/the right thing to do? Chris Suter Apr 24, 08:27
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 09:16
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 24, 11:34
mlRe: Resource Fork - is this a good use/the right thing to do? Uli Kusterer Apr 24, 11:52
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 13:08
mlRe: Resource Fork - is this a good use/the right thing to do? Michael Ash Apr 24, 13:44
mlRe: Resource Fork - is this a good use/the right thing to do? glenn andreas Apr 24, 14:41
mlRe: Resource Fork - is this a good use/the right thing to do? Daniel DeCovnick Apr 24, 17:28
mlRe: Resource Fork - is this a good use/the right thing to do? Hamish Allan Apr 24, 17:36
mlRe: Resource Fork - is this a good use/the right thing to do? Bill Monk Apr 24, 20:52
mlRe: Resource Fork - is this a good use/the right thing to do? Scott Ribe Apr 25, 16:49