We told you exactly where to look. Nevertheless, here's a direct link.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!
*MemoryBuffer
Re: *MemoryBuffer
Re: *MemoryBuffer
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
The help is segmented into logical portions like memory, gui elements, graphics, sound...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!
If you need one of them, have at least one look into the index and see which commands are available and what they do.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: *MemoryBuffer
Here we are reading the 6th byte.
Code: Select all
*buffer = AllocateMemory(1000)
PokeS(*buffer, "regards")
Debug PeekB(*buffer + 6)
Re: *MemoryBuffer
+0 is the first byte, +6 is the 7th byte actually.
