Page 2 of 2
Re: *MemoryBuffer
Posted: Fri Apr 25, 2025 12:03 pm
by Quin
rndrei wrote: Fri Apr 25, 2025 11:16 am
Thanks for the different options, but I have never found documentation about reading the right byte from the buffer!
We told you exactly where to look. Nevertheless, here's a
direct link.
Re: *MemoryBuffer
Posted: Fri Apr 25, 2025 12:09 pm
by AZJIO
You can add any even number to the pointer to access any byte. I'm at work and it's hard for me to give an example right now. I gave a link, if you use a pointer to allocated memory as a pointer to a string, then you can go through all the bytes. You just need to use "for" in order not to exceed the limit of the allocated memory.
Re: *MemoryBuffer
Posted: Fri Apr 25, 2025 2:48 pm
by jacdelad
rndrei wrote: Fri Apr 25, 2025 11:16 am
Thanks for the different options, but I have never found documentation about reading the right byte from the buffer!
And I drank cappuccino!
The help is segmented into logical portions like memory, gui elements, graphics, sound...
If you need one of them, have at least one look into the index and see which commands are available and what they do.
Re: *MemoryBuffer
Posted: Fri Apr 25, 2025 5:04 pm
by AZJIO
rndrei wrote: Thu Apr 24, 2025 6:31 pm
Tell me how to read the right byte from memory?
Here we are reading the 6th byte.
Code: Select all
*buffer = AllocateMemory(1000)
PokeS(*buffer, "regards")
Debug PeekB(*buffer + 6)
Re: *MemoryBuffer
Posted: Fri Apr 25, 2025 6:44 pm
by #NULL
AZJIO wrote: Fri Apr 25, 2025 5:04 pmHere we are reading the 6th byte.
+0 is the first byte, +6 is the 7th byte actually.
