Method procedure SLSimpleDataBuffer.ISLDataBuffer.Unique(Boolean)

From Mitov Wiki Doc
Revision as of 16:19, 19 October 2012 by David Alm (Talk | contribs)
Jump to: navigation, search

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.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox