Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
8d15be09
Commit
8d15be09
authored
Dec 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f443ae81
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
57 deletions
+72
-57
bigfile/_bigfile.c
bigfile/_bigfile.c
+65
-51
bigfile/_bigfile.h
bigfile/_bigfile.h
+6
-6
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+1
-0
No files found.
bigfile/_bigfile.c
View file @
8d15be09
This diff is collapsed.
Click to expand it.
bigfile/_bigfile.h
View file @
8d15be09
...
...
@@ -46,10 +46,10 @@ extern "C" {
* .pyuser generic python-level attribute (see below).
*/
struct
PyVMA
{
PyObject
;
PyObject
pyobj
;
PyObject
*
in_weakreflist
;
VMA
;
VMA
vma
;
/* python-level user of this VMA.
*
...
...
@@ -77,10 +77,10 @@ typedef struct PyVMA PyVMA;
* .isdirty() for knowing are there any changes at all
*/
struct
PyBigFileH
{
PyObject
;
PyObject
pyobj
;
PyObject
*
in_weakreflist
;
BigFileH
;
BigFileH
fileh
;
/* if subclass, in addition to .loadblk/.storeblk, defines .mmapper XXX ... */
PyObject
*
pymmapper
;
// python object returned by .mmaper() that is holding virtmem_mapper pycapsule
...
...
@@ -96,11 +96,11 @@ typedef struct PyBigFileH PyBigFileH;
* For users .fileh_open() is exposed to get to file handles.
*/
struct
PyBigFile
{
PyObject
;
PyObject
pyobj
;
/* NOTE no explicit weakref support is needed - this is a base class and python
* automatically adds support for weakrefs for in-python defined children */
BigFile
;
BigFile
file
;
};
typedef
struct
PyBigFile
PyBigFile
;
...
...
bigfile/file_zodb.cpp
View file @
8d15be09
...
...
@@ -20,6 +20,7 @@
#include "wcfs/internal/wcfs.h"
#include "wendelin/bigfile/file.h"
#include "wendelin/bigfile/virtmem.h"
#include "bigfile/_bigfile.h"
#include "bigfile/_file_zodb.h"
void
*
virt_mmap_setup_read
(
VMA
*
vma
,
BigFile
*
file
,
blk_t
blk
,
size_t
blklen
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment