Interface SLSimpleDataBuffer.ISLDataBuffer
From Mitov Wiki Doc
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.
Package: Mitov.BasicLab
Unit: SLSimpleDataBuffer
Inherits: ISLData
Contents |
Syntax
Delphi:
type ISLDataBuffer = interface( ISLData )
Summary
Basic Data buffer interface.
Description
All other buffer interfaces inherit from this one.
Properties
- Size - Returns the size of the buffer in elements.
- ByteSize - Returns the size of the buffer in bytes.
Methods
- procedure Assign(Other : ISLDataBuffer) - Assigns the data from another buffer.
- function IsEqual(Other : ISLDataBuffer) : Boolean - Returns True if the buffer contains data equal to another buffer.
- function ByteRead() : PByte - Returns read only pointer to the buffer data.
- function ByteWrite() : PByte - Returns write pointer to the buffer data.
- function ByteModify() : PByte - Returns read and write pointer to the buffer data.
- function GetByteSize() : Cardinal - Returns the size of the buffer in bytes.
- function GetSize() : Cardinal - Returns the size of the buffer in elements.
- function GetSequenceStamp() : TSLSequenceStamp
- procedure CopyTo(ASourceOffset : Cardinal; ATargetBuffer : ISLDataBuffer; ATargetOffset : Cardinal; ASize : Cardinal) - Copies part of the buffer into another buffer.
- procedure Unique(PreserveData : Boolean) - Makes the data of the buffer Unique.
- function MakeUnique(PreserveData : Boolean) : Boolean
- procedure SaveToFile(AFileName : String) - Saves the content of the buffer to file.
- procedure LoadFromFile(AFileName : String) - Loads the data from a file in the buffer.