Search found 73 matches

by jaokim
Sat Apr 16, 2016 6:21 pm
Forum: General Developer Support
Topic: Equivalent of mmap
Replies: 7
Views: 8054

Re: Equivalent of mmap

@chris: Yes, its something like this I'm thinking of doing. And with your implementation, my assumptions of the functionality seems correct. Thanks! I don't want to emulate the exact behavior of mmap per se, but rather find a way to implement java.nio.MappedByteBuffer . The reference implementation ...
by jaokim
Sat Apr 16, 2016 2:16 pm
Forum: General Developer Support
Topic: Equivalent of mmap
Replies: 7
Views: 8054

Re: Equivalent of mmap

Yes, one of the arguments to the open method is just that: read or read/write. So I'm thinking it'd be possible to at least support read only. And perhaps even do some sort of partial write support. It is stated in the docs that the functionality can have undefined results if the file is written to ...
by jaokim
Sat Apr 16, 2016 1:07 pm
Forum: General Developer Support
Topic: Equivalent of mmap
Replies: 7
Views: 8054

Equivalent of mmap

I need to implement an Amiga version of mmap, i.e. read in a potentially huge file to memory, and use it as a chunk of memory. To quote the docs: "A direct byte buffer whose content is a memory-mapped region of a file." This is for Java, i.e. Jamiga, and the java.nio.MappedByteBuffer class...
by jaokim
Sat Sep 19, 2015 5:48 pm
Forum: General Developer Support
Topic: PrefsObject
Replies: 36
Views: 27336

Re: PrefsObject

I don't have much application library knowledge, so I don't know which six types there are. But, if I'm allowed to elaborate, I'm thinking one might want to support more types in the future. Therefore I think that an attribute would be better suited... Although, on the other hand, we'd get a less &q...
by jaokim
Sat Sep 19, 2015 9:09 am
Forum: General Developer Support
Topic: PrefsObject
Replies: 36
Views: 27336

Re: PrefsObject

<item key="Filer.def.dstbackground2pen.r" type="string" > 0xEEEDEEED </item> <item key="Filer.def.search.filename.case" type="bool" > TRUE </item> <string key="Filer.def.dstbackground2pen.r>0xEEEDEEED</string> <bool key="Filer.def.search.filename.ca...
by jaokim
Mon Jul 20, 2015 3:59 pm
Forum: General AmigaOS
Topic: DiskImage Device Newer than AOS4.1Upd1...
Replies: 3
Views: 3501

Re: DiskImage Device Newer than AOS4.1Upd1...

Yes, I've experienced that. I think it's due to a corrupt gui.prefs file, if I'm not mistaken. There should be a thread on it somewhere here. The fix is to remove the faulty gui.prefs and re-create te settings. I think a simple re-save wasn't enough.
by jaokim
Sun Apr 26, 2015 8:09 pm
Forum: SDK Support
Topic: How to turn off deprecated warnings
Replies: 20
Views: 19661

Re: How to turn off deprecated warnings

To me, setting -DDEPRECATED= is a hack/workaround and not an elegant solution. An elegant solution is adding a new define that actually does what it says, e.g. -D__NO_DEPRECATED__ to skip deprecated warnings. Wouldn't "NO DEPRECATED" mean that no deprecated functions should be used, i.e. ...
by jaokim
Sun Mar 22, 2015 7:30 pm
Forum: General AmigaOS
Topic: Migrating to a new HDD
Replies: 5
Views: 3977

Re: Migrating to a new HDD

Great questions, great answers! Cleared out how things works.
Should be put in the wiki.
by jaokim
Wed Mar 04, 2015 11:40 pm
Forum: SDK Support
Topic: libauto and application.library
Replies: 21
Views: 23551

Re: libauto and application.library

I was resurrecting an old project, which used application library interface v 1, and libauto, and this problem dawned upon me -- not in compile time, but in runtime! I see and hear what you're saying about not using libauto, since you loose control over the versions. But in my honest opinion this ra...