Method procedure SLSimpleDataBuffer.ISLDataBuffer.Unique(Boolean)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
Revision as of 13:52, 26 October 2012
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Class: ISLDataBuffer
Contents |
Syntax
Delphi:
procedure Unique( PreserveData : Boolean );
C++ Builder:
void __fastcall Unique( bool PreserveData );
Visual C++ (MFC):
' Unique( PreserveData );
Summary
Makes the data of the buffer Unique.
Description
The SignalLab reduces the amount of copy operations, by keeping the data in internal buffer, and keeping references to the buffer from the data buffers. Each time an assignment operation is performed, the reference counter is increased. If the data has to be modified for one of the data buffers pointing to the internal buffers, a separated copy of the data has to be created. By calling Unique you can force the buffer to obtain unique copy of the data, and to become its explicit owner.
Parameters
Parameter | Description |
---|---|
PreserveData | If true - the data will be preserved. |
Otherwise the current data of the buffer may | |
be lost. |