Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6652
| From | Martin <News04@avisoft.f9.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Temporary memory |
| Date | 2026-06-14 11:24 +0100 |
| Organization | None |
| Message-ID | <5ce8c3e7b9News04@avisoft.f9.co.uk> (permalink) |
| References | <5ce8bbe2c2bob@sick-of-spam.invalid> |
In article <5ce8bbe2c2bob@sick-of-spam.invalid>, Bob Latham <bob@sick-of-spam.invalid> wrote: > I could use some advice on obtaining and using temporary extra > memory from within a program. I do recall that at one time there > was a way to claim some temp memory but I also recall that the > method changed for some reason. I can't remember how/why to be > honest. > I need probably no more than 2M byte, a few 100k more the normal. > I'm using OS5.31 but only have a set of RO3 PRMs. > Essentially, I need to move a few blocks of data up or down within > the file. Read blocks of bytes using OS_GBPB 3 and write them back > either higher or lower with OS_GBPB 1. The size of the ram buffer > determines if I have to do this in chunks or all in one go. > Thanks for any advice. > Background. I'm writing a FLAC (music file) tag editor for doing > mass changes across a large library. Flac files have several blocks > of data before the music in the file. Two of those blocks are the > tagging area and the padding area. The padding area is there to > give spare bytes within a fixed size file that you can use if you > need them for tagging changes but you need to move the data between > them to do that. What language are you using? You could... - allocate a large enough slotsize when your app starts. - change slotsize dynamically using SWI Wimp_SlotSize. - set up a Dynamic Area and use that. - claim some RMA, but probably not a good idea these days. - and no doubt other solutions are available! -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 09:56 +0100
Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 11:24 +0100
Re: Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 12:41 +0100
Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 13:13 +0100
Re: Temporary memory Bob Latham <bob@sick-of-spam.invalid> - 2026-06-14 14:51 +0100
Re: Temporary memory Martin <News04@avisoft.f9.co.uk> - 2026-06-14 15:28 +0100
csiph-web