[SAGA-RG] Fwd (ceriel at cs.vu.nl): [saga-cvs] "SAGA-RG/SAGA-Bindings/Java/OGF/src/org/ogf/saga/file FileFactory.java"

Ceriel Jacobs ceriel at cs.vu.nl
Thu Jan 24 11:34:44 CST 2008


Hi Andre,

Andre Merzky wrote:

> Hi Ceriel,
> 
> Quoting [Ceriel Jacobs] (Jan 24 2008):

>> As far as I am concerned, the "offset" field can completely be removed from the specs.
>> POSIX iovec does not have an offset field, and I don't know why it
>> made it to the SAGA specs.
> 
> To simplify the reuse of memory segments w/o the need for
> pointer arythmetics:
...
> If offsets are really needed can certainly be disputed.  In
> C++, where pointer arithmetic is easy, one could certainly
> do without.  I'd actually thought that it helps in Java.
> Ah, well... ;-)

Well, java.io.InputStream has a read method that has an offset,
so it is certainly common usage in Java to have an offset.
But then, the offset should be in buffer, not in iovec.
I think that that would make more sense than to have it
in iovec. O well, I guess this is a done deal.

Ceriel


More information about the saga-rg mailing list