Hex editor and FXRuby?

Anyone know to make a hex editor in FXRuby ?
My problem is that i have tried and not succeeded to display hex bytes
from a 10Ko file in a FXtext in a reasonnable time !
Any clue ?
thanks
Noel

IIRC there exists a library where you can memory map a file, this way you
can be looking at a small window, say 2kbytes of a huge file 30gbytes.
Though I don’t know any urls to this module.

When one attempts to move the cursor outside the window, then you just
slide the window to the new position.

···

On Sun, 21 Dec 2003 06:39:20 +0900, Noel Cuillandre wrote:

Anyone know to make a hex editor in FXRuby ?
My problem is that i have tried and not succeeded to display hex bytes
from a 10Ko file in a FXtext in a reasonnable time !
Any clue ?


Simon Strandgaard

Hello Noel,

Saturday, December 20, 2003, 10:39:20 PM, you wrote:

Anyone know to make a hex editor in FXRuby ?
My problem is that i have tried and not succeeded to display hex bytes
from a 10Ko file in a FXtext in a reasonnable time !
Any clue ?
thanks
Noel

FXtext should display a Megabyte in reasonable time.
Measure where you spend the time. I found that you must always add as
much text as possible at once. Appending text ist terrible slow.

···

--
Best regards,
Lothar mailto:mailinglists@scriptolutions.com

found the url:
http://raa.ruby-lang.org/list.rhtml?name=mmap

···

On Sun, 21 Dec 2003 00:36:18 +0100, Simon Strandgaard wrote:

On Sun, 21 Dec 2003 06:39:20 +0900, Noel Cuillandre wrote:

Anyone know to make a hex editor in FXRuby ?
My problem is that i have tried and not succeeded to display hex bytes
from a 10Ko file in a FXtext in a reasonnable time !
Any clue ?

IIRC there exists a library where you can memory map a file, this way you
can be looking at a small window, say 2kbytes of a huge file 30gbytes.
Though I don’t know any urls to this module.


Simon Strandgaard

You’re right, Lothar, appending text is the way i used to add data to
the FXText, Simon Strandgaard has given another method using memory map
file. I will try this.
Thanks again
Noel

Lothar Scholz wrote:

···

Hello Noel,

Saturday, December 20, 2003, 10:39:20 PM, you wrote:

Anyone know to make a hex editor in FXRuby ?
My problem is that i have tried and not succeeded to display hex bytes
from a 10Ko file in a FXtext in a reasonnable time !
Any clue ?
thanks
Noel

FXtext should display a Megabyte in reasonable time.
Measure where you spend the time. I found that you must always add as
much text as possible at once. Appending text ist terrible slow.

thanks Simon, I will try this way !

Simon Strandgaard wrote:

···

On Sun, 21 Dec 2003 00:36:18 +0100, Simon Strandgaard wrote:

IIRC there exists a library where you can memory map a file, this way you
can be looking at a small window, say 2kbytes of a huge file 30gbytes.
Though I don’t know any urls to this module.

found the url:
http://raa.ruby-lang.org/list.rhtml?name=mmap


Simon Strandgaard