Hex editor and FXRuby ?

N

Noel Cuillandre

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
 
S

Simon Strandgaard

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.

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

Lothar Scholz

Hello Noel,

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

NC> Anyone know to make a hex editor in FXRuby ?
NC> My problem is that i have tried and not succeeded to display hex bytes
NC> from a 10Ko file in a FXtext in a reasonnable time !
NC> Any clue ?
NC> thanks
NC> 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.
 
N

Noel Cuillandre

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,364
Latest member
Stevanida

Latest Threads

Top