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

Method get_bytes

Tools/octetStream.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void octetStream::get_bytes(octet* ans, size_t& length)
159{
160 auto rec_length = get_int(4);
161 if (rec_length != length)
162 throw runtime_error("unexpected length");
163 memcpy(ans, consume(length), length * sizeof(octet));
164}
165
166void octetStream::store(int l)
167{

Callers 1

exec_baseMethod · 0.45

Calls 2

get_intFunction · 0.85
runtime_errorFunction · 0.85

Tested by

no test coverage detected