MCPcopy Create free account
hub / github.com/LMMS/lmms / write

Function write

include/RemotePlugin.h:708–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706 }
707
708 void write( const void * _buf, int _len )
709 {
710 if( isInvalid() )
711 {
712 return;
713 }
714 const char * buf = (const char *) _buf;
715 int remaining = _len;
716 while ( remaining )
717 {
718 ssize_t nwritten = ::write( m_socket, buf, remaining );
719 switch ( nwritten )
720 {
721 case -1:
722 fprintf( stderr,
723 "Error while writing.\n" );
724 case 0:
725 invalidate();
726 return;
727 }
728 buf += nwritten;
729 remaining -= nwritten;
730 }
731 }
732
733
734 bool m_invalid;

Callers 12

writeFileMethod · 0.85
writeMethod · 0.85
runMethod · 0.85
runMethod · 0.85
writeMethod · 0.85
write_stateMethod · 0.85
padMethod · 0.85
threadMethod · 0.85
writeIntMethod · 0.85
writeStringMethod · 0.85
writeIntFunction · 0.85
writeStringFunction · 0.85

Calls 2

isInvalidFunction · 0.85
invalidateFunction · 0.85

Tested by

no test coverage detected