コード例 #1
0
MPIStream* _MPIStream_New(  MPISTREAM_DEFARGS  )
{
	MPIStream* self;
	
	/* Allocate memory */
	assert( _sizeOfSelf >= sizeof(MPIStream) );
	self = (MPIStream*)_Stream_New(  STREAM_PASSARGS  );
	
	_MPIStream_Init( self );
	
	return self;
}
コード例 #2
0
BinaryStream* _BinaryStream_New(  BINARYSTREAM_DEFARGS  )
{
    BinaryStream* self;

    /* Allocate memory */
    assert( _sizeOfSelf >= sizeof(BinaryStream) );
    self = (BinaryStream*)_Stream_New(  STREAM_PASSARGS  );

    _BinaryStream_Init( self );

    return self;
}