Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::text::SegCreateIndirect Macro
C++
#define SegCreateIndirect(t) SegCreateIndirectEx(t DBG_SRC)

Creates a text segment that refers to the parameter indirectly. The new segment is not really a clone, but a reference of the original PTEXT.

PTEXT phrase = SegCreateIndirect( SegAppend( SegCreateFromText( "Hello" )
                                           , SegCreateFromText( "World" ) ) );

The resulting phrase is a single segment with no prior or next, but its content is "HelloWorld" if it was passed to buildline... it's go the content of the two text segments linked together, but not in its buffer. It is actually a 0 length buffer for a TEXT segment.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!