Skip to content
Snippets Groups Projects
Commit a79bbb23 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

LINES

parent 0e20943c
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ A table is of form ( (name1::bytes, fv1), (name2::bytes, fv2), ...)
NOTE: it's not buffers, it's memoryview all along
"""
from __future__ import absolute_import, division, print_function
import struct
......@@ -22,10 +21,12 @@ import six
def _tobuf(buf, pattern, *vals):
return buf.write(struct.pack(pattern, *vals))
def _tobufv(buf, value, pattern, *vals):
_tobuf(buf, pattern, *vals)
buf.write(value)
def enframe_decimal(buf, v): # convert decimal to bytes
dps = 0
for k in six.moves.xrange(20):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment