Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #2048 (new enhancement)

Opened 13 years ago

Last modified 13 years ago

add offset and length to MappedFile.map

Reported by: Marenz Assigned to: community
Priority: major Milestone: 1.0
Component: Tango Version: trunk
Keywords: Cc:

Description

It is not possible to open files larger than 2GB with MappedFile? on 32bit systems even though mmap itself would support it. To actually access the parts after offset 2GB, one needs to specify the 2GB as starting offset (and to make access the first 2GB, one has to limit the length of the mapping). Thus the two optional parameters offset and length would be needed.

I wrote a small patch to do exactly that.

Attachments

FileMap.d (12.3 kB) - added by Marenz on 05/04/11 13:00:12.
adds offset and length to MappedFile?.map
FileMap.d.patch (3.0 kB) - added by Marenz on 05/04/11 13:26:39.
fixed order of parameters, added offset to windows version

Change History

05/04/11 13:00:12 changed by Marenz

  • attachment FileMap.d added.

adds offset and length to MappedFile?.map

05/04/11 13:26:39 changed by Marenz

  • attachment FileMap.d.patch added.

fixed order of parameters, added offset to windows version

05/04/11 13:31:41 changed by Marenz

  • type changed from defect to enhancement.

05/04/11 13:32:09 changed by Marenz

  • version changed from 0.99.9 Kai to trunk.