MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / JChunkWriter

Method JChunkWriter

jalib/jsocket.cpp:679–687  ·  view source on GitHub ↗

! \fn jalib::JChunkWriter::JChunkWriter(JSocket sock, const char* buf, int len) */

Source from the content-addressed store, hash-verified

677 \fn jalib::JChunkWriter::JChunkWriter(JSocket sock, const char* buf, int len)
678 */
679jalib::JChunkWriter::JChunkWriter(JSocket sock, const char *buf, int len)
680 : JWriterInterface(sock)
681 , _buffer((char *)jalib::JAllocDispatcher::malloc(len))
682 , _length(len)
683 , _sent(0)
684 , _hadError(false)
685{
686 memcpy(_buffer, buf, len);
687}
688
689/*!
690 \fn jalib::JChunkWriter::JChunkWriter(const JChunkWriter& that)

Callers

nothing calls this directly

Calls 2

mallocFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected