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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
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
Show 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 (
...
@@ -39,7 +39,7 @@ import (
// ZBigFile mimics ZBigFile from python.
// ZBigFile mimics ZBigFile from python.
type
ZBigFile
struct
{
type
ZBigFile
struct
{
pyobj
*
pyObject
*
pyObject
blksize
int64
blksize
int64
blktab
*
ZBTree
// LOBtree{} blk -> ZBlk*(blkdata)
blktab
*
ZBTree
// LOBtree{} blk -> ZBlk*(blkdata)
...
@@ -101,7 +101,7 @@ func (bf *ZBigFile) PDeactivate() {
...
@@ -101,7 +101,7 @@ func (bf *ZBigFile) PDeactivate() {
bf
.
blksize
=
-
1
bf
.
blksize
=
-
1
bf
.
blktab
=
nil
bf
.
blktab
=
nil
bf
.
py
obj
.
PDeactivate
()
bf
.
py
Object
.
PDeactivate
()
}
}
...
@@ -111,7 +111,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
...
@@ -111,7 +111,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
return nil
return nil
}
}
err = bf.py
obj
.PActivate(ctx)
err = bf.py
Object
.PActivate(ctx)
if err != nil {
if err != nil {
return err
return err
}
}
...
@@ -123,7 +123,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
...
@@ -123,7 +123,7 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
}()
}()
// decode pystate
// decode pystate
t, ok := bf.py
obj
.pystate.(pickle.Tuple)
t, ok := bf.py
Object
.pystate.(pickle.Tuple)
if !ok || len(t) != 2 {
if !ok || len(t) != 2 {
// XXX expected (.blksize, blktab)
// XXX expected (.blksize, blktab)
}
}
...
@@ -160,3 +160,13 @@ func (bf *ZBigFile) PActivate(ctx context.Context) (err error) {
...
@@ -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