Hi,
ImageFileHeader does not position the stream at the given imageOffset
before reading the header. The header may also be present 512 bytes into
the file. Attached changeset fixes this gap and also preserves
littleEndian flag in an instance variable.
I tested the fix by inspecting:
----
#('hdr6502-0be.image' 'hdr6502-0le.image'
'hdr6502-512be.image' 'hdr6502-512le.image'
'hdr6504-0be.image' 'hdr6504-0le.image'
'hdr6504-512be.image' 'hdr6504-512le.image'
'hdr6505-0be.image' 'hdr6505-0le.image'
'hdr6505-512be.image' 'hdr6505-512le.image'
'hdr68002-0be.image' 'hdr68002-0le.image'
'hdr68002-512be.image' 'hdr68002-512le.image'
'Squeak6.0alpha-19603-64bit.image') collect: [:image || f |
f := FileStream readOnlyFileNamed: image.
([f binary. ImageFileHeader readFrom: f ] ensure: [ f close ])
]
----
Regards .. Subbu