Hmm dige, your code won't work for big files in 32 Bit PureBasic as it maps the whole file into virtual memory space... still it might come in handy in other projects...
Thanks Danilo for the neat piece of code. Two questions:
1. Your code fails for devices that don't support sparse files (e.g ...
Search found 159 matches
- Fri Nov 11, 2011 12:52 pm
- Forum: Coding Questions
- Topic: Best method to preallocate a big file?
- Replies: 5
- Views: 2171
- Fri Nov 11, 2011 1:36 am
- Forum: Coding Questions
- Topic: Best method to preallocate a big file?
- Replies: 5
- Views: 2171
Best method to preallocate a big file?
I'm looking for the best way to preallocate a big file before starting to write into it in order to make code simpler in the long run.
Let's assume this as basic app code:
Declare CreateFilePreallocated(fileId, filename.s, fileSize.q)
Define big_size.q
big_size = 1024 * 1024 ; 1mb for testing ...
Let's assume this as basic app code:
Declare CreateFilePreallocated(fileId, filename.s, fileSize.q)
Define big_size.q
big_size = 1024 * 1024 ; 1mb for testing ...
- Sat Aug 13, 2011 11:02 am
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] Packer command support of ZIP compression
- Replies: 29
- Views: 7229
Re: Packer command support of ZIP compression algorithm ?
Add LZMA (SDK = LZMA Utils) / LZMA2 (SDK = XZ Utils) instead.
It's free and cross platform and the license would allow integrating it as a library
It's free and cross platform and the license would allow integrating it as a library
- Thu Jan 14, 2010 8:22 pm
- Forum: Coding Questions
- Topic: AES encryption/decryption padding
- Replies: 0
- Views: 712
AES encryption/decryption padding
Hi I'm currently working on a project where a Java server and a PureBasic client communicate using AES CBC encryption.
As the documentation about the AES Cipher lib of PureBasic currently is very basic I wanted to ask if anybody knows how PureBasic does the padding for input data that has a length ...
As the documentation about the AES Cipher lib of PureBasic currently is very basic I wanted to ask if anybody knows how PureBasic does the padding for input data that has a length ...
- Mon Nov 10, 2008 10:53 pm
- Forum: Announcement
- Topic: uPatcher - The FREEWARE Update Patcher
- Replies: 3
- Views: 3024
- Mon Nov 10, 2008 3:29 am
- Forum: Tricks 'n' Tips
- Topic: Wildcard String Compare
- Replies: 16
- Views: 12396
- Fri Nov 07, 2008 10:21 pm
- Forum: Tricks 'n' Tips
- Topic: Wildcard String Compare
- Replies: 16
- Views: 12396
- Mon Jun 23, 2008 5:08 pm
- Forum: Announcement
- Topic: Hover-Bots: 3D Comic Action-Racing Game [NOW ALSO FOR VISTA]
- Replies: 43
- Views: 19496
- Mon Jun 23, 2008 12:29 pm
- Forum: Announcement
- Topic: Hover-Bots: 3D Comic Action-Racing Game [NOW ALSO FOR VISTA]
- Replies: 43
- Views: 19496
- Sun Jun 22, 2008 6:05 pm
- Forum: Announcement
- Topic: Hover-Bots: 3D Comic Action-Racing Game [NOW ALSO FOR VISTA]
- Replies: 43
- Views: 19496
- Wed Jun 04, 2008 11:35 pm
- Forum: General Discussion
- Topic: Managing & Compiling Large Projects
- Replies: 10
- Views: 2728
- Sat May 31, 2008 12:55 am
- Forum: PureFORM & JaPBe
- Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
- Replies: 1545
- Views: 689761
- Thu May 29, 2008 4:53 pm
- Forum: PureFORM & JaPBe
- Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
- Replies: 1545
- Views: 689761
In the latest version JaPBe hangs for several seconds while starting up. This slows down the general startup process of JaPBe what is really annoying when starting and closing JaPBe often as I do.
Please fix it (JaPBe Version 3.8.5.702)
1. It noticed a delay with PB4.20 too if 'Load constants from ...
Please fix it (JaPBe Version 3.8.5.702)
1. It noticed a delay with PB4.20 too if 'Load constants from ...
- Wed May 28, 2008 8:54 pm
- Forum: PureFORM & JaPBe
- Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
- Replies: 1545
- Views: 689761
- Tue May 27, 2008 5:10 pm
- Forum: Feature Requests and Wishlists
- Topic: Static lib output
- Replies: 28
- Views: 43462
This: http://www.purebasic.fr/english/viewtopic.php?t=31339
looks like a temporary solution...
looks like a temporary solution...