Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6652

Re: Temporary memory

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Martin <News04@avisoft.f9.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Temporary memory
Date Sun, 14 Jun 2026 11:24:01 +0100
Organization None
Lines 41
Message-ID <5ce8c3e7b9News04@avisoft.f9.co.uk> (permalink)
References <5ce8bbe2c2bob@sick-of-spam.invalid>
Injection-Date Sun, 14 Jun 2026 10:24:13 +0000 (UTC)
Injection-Info dont-email.me; logging-data="3741251"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7Js74wYwlu+LV8GM1HLMo"; posting-host="6127fb957dc7812d5d14d8eb8cd4bb85"
User-Agent Pluto/3.21a (RISC OS/5.31) NewsHound/v1.54
Cancel-Lock sha1:mKDDK2Aa6YTS3nk+peqEDzuyMuw= sha256:8uZAYF9Oh6JCK0jJxb8BKIs2Jj3zeZilBDB6SsRi/n0= sha1:KhDdC/oZb7t83h3LocaTeSLiDuY=
Xref csiph.com comp.sys.acorn.programmer:6652

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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