Array of BYTEs

Previous topic - Next topic

Heiko


Kitty Hello

OK, I added a new version which has PEEKLONG and POKELONG, too.

However! You need V6 to compile it, and the IDE currently does not display function names ending with % properly. The compiler works, however.

Heiko

Gernot can you make this one command too?

ReadBytes (bank, stream, start, anzahl)   // read anzahl of bytes beginning at start in the file was opened.return anzahl sucessfully read bytes and writes the bytes in the bank created with CreateBank.

here german link for help : http://www.blitzforum.de/help/ReadBytes

perhaps WriteBytes too.

Start reading in the bank at start and write it to file was opened.

and useful can be resizebank and copybank.

I hope its not to much hard work for you.

Big thanks.

Hemlos

Quote from: Heiko on 2008-Oct-25
ReadBytes (bank, stream, start, anzahl)   // read anzahl of bytes beginning at start in the file was opened.return anzahl sucessfully read bytes and writes the bytes in the bank created with CreateBank.


Not sure why you need something like that..

readbyte,1,dat$
dimpush bank[],dat$

Isnt this the same thing?

btw,What is anzahl?
Bing ChatGpt is pretty smart :O


Kitty Hello

Write to file or what?

Heiko

yes, read out a bank at "start" with number of "anzahl" return the number of truely read datas and write it at the same time to the stream open with open file.

The same like WriteBytes wich write Bytes from a streamed file at "start" in file number of "anzahl" write to a bank created with CreateBank at position 0, i think.

Now you know?

Kitty Hello


Heiko

cool job gernot, thanks.
one question if you have anytime a little time for it.

CopyBank and ResizeBank are useful....too.

But perhaps at this time not important.