Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ML
lib
Binary Storage
Commits
2298474d
Commit
2298474d
authored
Apr 06, 2020
by
Zhukov, Alexander P
Browse files
Swithced to Q type which is at least 8 bytes unseigned
parent
90ec7523
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/read_storage.py
View file @
2298474d
...
...
@@ -240,7 +240,7 @@ def read_epilog(file):
file
.
seek
(
-
4
-
OFST_SIZE
*
num_records
,
os
.
SEEK_END
)
# the last record is EOF, and the very last offset has nothing
raw
=
array
(
'
L
'
,
file
.
read
(
OFST_SIZE
*
(
num_records
-
2
)))
raw
=
array
(
'
Q
'
,
file
.
read
(
OFST_SIZE
*
(
num_records
-
2
)))
raw
.
byteswap
()
# print('Number of records: ', len(raw))
# print(raw.itemsize)
...
...
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