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
2848c632
Commit
2848c632
authored
Jul 16, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6ba3593d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
wcfs/zblk.go
wcfs/zblk.go
+14
-4
No files found.
wcfs/zblk.go
View file @
2848c632
...
...
@@ -39,7 +39,7 @@ import (
// ZBigFile mimics ZBigFile from python.
type
ZBigFile
struct
{
pyobj
*
pyObject
*
pyObject
blksize
int64
blktab
*
ZBTree
// LOBtree{} blk -> ZBlk*(blkdata)
...
...
@@ -101,7 +101,7 @@ func (bf *ZBigFile) PDeactivate() {
bf
.
blksize
=
-
1
bf
.
blktab
=
nil
bf
.
py
obj
.
PDeactivate
()
bf
.
py
Object
.
PDeactivate
()
}
...
...
@@ -111,7 +111,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
return nil
}
err = bf.py
obj
.PActivate(ctx)
err = bf.py
Object
.PActivate(ctx)
if err != nil {
return err
}
...
...
@@ -123,7 +123,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
}()
// decode pystate
t, ok := bf.py
obj
.pystate.(pickle.Tuple)
t, ok := bf.py
Object
.pystate.(pickle.Tuple)
if !ok || len(t) != 2 {
// XXX expected (.blksize, blktab)
}
...
...
@@ -160,3 +160,13 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
}
*/
// ----------------------------------------
func
zbigfileNew
(
pyobj
*
pyObject
)
PyObject
{
return
&
ZBigFile
{
pyObject
:
pyobj
}
}
func
init
()
{
registerClass
(
zwendelin
+
".ZBigFile"
,
zbigfileNew
)
}
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