edsrzf / mmap-go

A portable mmap package for Go
BSD 3-Clause "New" or "Revised" License
938 stars 129 forks source link

Fix non-zero offset mmap on Windows #4

Closed gilramir closed 9 years ago

gilramir commented 9 years ago

mmaping at an offset > 0 on Windows was failling due to how CreateFileMapping works.

This also fixes a bug where the high-order DWORD of the mapping size was not being passed to CreateFileMapping.

edsrzf commented 9 years ago

Thanks! Please fix the variable name nits and I'll merge this. (If you can't get to it, I can do it.)

edsrzf commented 9 years ago

Thanks again!