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

Method store_bytes

Tools/octetStream.cpp:152–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152void octetStream::store_bytes(octet* x, const size_t l)
153{
154 encode_length(append(4), l, 4);
155 memcpy(append(l), x, l*sizeof(octet));
156}
157
158void octetStream::get_bytes(octet* ans, size_t& length)
159{

Callers 1

exec_baseMethod · 0.80

Calls 2

encode_lengthFunction · 0.85
appendFunction · 0.70

Tested by

no test coverage detected