diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-12 09:23:30 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-12 09:23:30 -0600 |
commit | 1c97a490dda8e8b8d3805fa6debccc34f32b540d (patch) | |
tree | 7d0a35f8becb520361016cb7c6551afe64c7ebf1 /bolt_386.go | |
parent | Add Windows support. (diff) | |
download | dedo-1c97a490dda8e8b8d3805fa6debccc34f32b540d.tar.gz dedo-1c97a490dda8e8b8d3805fa6debccc34f32b540d.tar.xz |
Add Windows support.
This commit adds Windows support to Bolt. Windows memory maps return an address instead of a byte
slice so the DB.data field had to be refactored to be a pointer to a large byte array.
Diffstat (limited to 'bolt_386.go')
-rw-r--r-- | bolt_386.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bolt_386.go b/bolt_386.go new file mode 100644 index 0000000..856f401 --- /dev/null +++ b/bolt_386.go @@ -0,0 +1,4 @@ +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0xFFFFFFF // 256MB |