提交 e730bc59 编写于 作者: H Helin Wang

improve comment

上级 4970484d
......@@ -31,9 +31,9 @@ class client(object):
ret = ctypes.pointer(p)
size = lib.paddle_next_record(self.c, ret)
if size == 0:
# empty record
# Empty record
return ""
record = ret.contents.value[:size]
# memory created from C should be freed.
# Memory created from C should be freed.
lib.mem_free(ret.contents)
return record
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册