Sack Library Documentation
ContentsIndexReferenceHome
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.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!