Example #1
0
void LLChangeChannel::operator()(LLSegment& segment)
{
    if(segment.isOnChannel(mIs))
    {
        segment.setChannel(mBecomes);
    }
}
Example #2
0
	void buffer_object_t::test<2>()
	{
		LLSegment segment;
		ensure("LLSegment get functions failed", (0 == segment.getChannel() && NULL == segment.data() && 0 == segment.size()));
		segment.setChannel(50);
		ensure_equals("LLSegment setChannel() function failed", segment.getChannel(), 50);
		ensure("LLSegment isOnChannel() function failed", (TRUE == segment.isOnChannel(50)));
	}