MCPcopy Create free account
hub / github.com/ImageEngine/cortex / imageData

Method imageData

src/IECoreImage/ClientDisplayDriver.cpp:212–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void ClientDisplayDriver::imageData( const Box2i &box, const float *data, size_t dataSize )
213{
214 sendHeader( DisplayDriverServerHeader::imageData, sizeof( box ) + dataSize * sizeof( float ) );
215
216 boost::array<boost::asio::const_buffer, 2> buffers = { {
217 boost::asio::buffer( &box, sizeof( box ) ),
218 boost::asio::buffer( data, dataSize * sizeof( float ) )
219 } };
220 boost::asio::write( m_data->m_socket, buffers );
221}
222
223void ClientDisplayDriver::imageClose()
224{

Callers 3

testMergeMapMethod · 0.95
testTransferMethod · 0.95

Calls 1

writeFunction · 0.85

Tested by 3

testMergeMapMethod · 0.76
testTransferMethod · 0.76