Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/data61/MP-SPDZ
/ encode
Method
encode
Compiler/instructions_base.py:958–959 ·
view source on GitHub ↗
(cls, arg)
Source
from the content-addressed store, hash-verified
956
957
@classmethod
958
def
encode(cls, arg):
959
return
bytearray(arg,
'ascii'
) + b
'\0'
* (cls.length - len(arg))
960
961
def
__init__(self, f):
962
tmp = f.read(16)
Callers
2
get_bytes
Method · 0.45
get_encoding
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected