MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / alloc

Method alloc

Compiler/types.py:6110–6117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6108 self.alloc()
6109
6110 def alloc(self):
6111 if self._address is None:
6112 try:
6113 self.address = self.value_type.malloc(self.length,
6114 self.creator_tape)
6115 except AttributeError:
6116 raise CompilerError('cannot create Array of %s' % \
6117 self.value_type)
6118
6119 def delete(self):
6120 self.value_type.free(self.address)

Callers 15

__init__Method · 0.95
allocMethod · 0.45
wrapperFunction · 0.45
input_fromMethod · 0.45
__getitem__Method · 0.45
assign_allMethod · 0.45
assign_vectorMethod · 0.45
randomizeMethod · 0.45
XMethod · 0.45
YMethod · 0.45
backwardMethod · 0.45

Calls 2

CompilerErrorClass · 0.85
mallocMethod · 0.45

Tested by

no test coverage detected