예제 #1
0
static void exec(string const& _args, bytesConstRef _in)
{
	try
	{
		exec_stream_t es("ipfs", _args);
		es.in() << string(_in.begin(), _in.end());
	}
	catch (exception const &e)
	{
		throw IPFSCommunicationError(e.what());
	}
}
예제 #2
0
	TrieExtNode(bytesConstRef _bytes): m_ext(_bytes.begin(), _bytes.end()) {}