Interface SLSimpleDataBuffer.ISLDataBuffer
From Mitov Wiki Doc
(Difference between revisions)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
(15 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
</span></b> | </span></b> | ||
− | '''Package:''' [[Package | + | '''Package:''' [[Package Mitov.BasicLab|Mitov.BasicLab]] |
'''Unit:''' [[Unit SLSimpleDataBuffer|SLSimpleDataBuffer]] | '''Unit:''' [[Unit SLSimpleDataBuffer|SLSimpleDataBuffer]] | ||
Line 37: | Line 37: | ||
*[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.CopyTo(Cardinal;ISLDataBuffer;Cardinal;Cardinal)|procedure CopyTo(ASourceOffset : Cardinal; ATargetBuffer : ISLDataBuffer; ATargetOffset : Cardinal; ASize : Cardinal)]] - Copies part of the buffer into another buffer. | *[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.CopyTo(Cardinal;ISLDataBuffer;Cardinal;Cardinal)|procedure CopyTo(ASourceOffset : Cardinal; ATargetBuffer : ISLDataBuffer; ATargetOffset : Cardinal; ASize : Cardinal)]] - Copies part of the buffer into another buffer. | ||
*[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.Unique(Boolean)|procedure Unique(PreserveData : Boolean)]] - Makes the data of the buffer Unique. | *[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.Unique(Boolean)|procedure Unique(PreserveData : Boolean)]] - Makes the data of the buffer Unique. | ||
+ | *[[Method function SLSimpleDataBuffer.ISLDataBuffer.MakeUnique(Boolean) : Boolean|function MakeUnique(PreserveData : Boolean) : Boolean]] | ||
*[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.SaveToFile(String)|procedure SaveToFile(AFileName : String)]] - Saves the content of the buffer to file. | *[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.SaveToFile(String)|procedure SaveToFile(AFileName : String)]] - Saves the content of the buffer to file. | ||
*[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.LoadFromFile(String)|procedure LoadFromFile(AFileName : String)]] - Loads the data from a file in the buffer. | *[[Method procedure SLSimpleDataBuffer.ISLDataBuffer.LoadFromFile(String)|procedure LoadFromFile(AFileName : String)]] - Loads the data from a file in the buffer. | ||
[[Category:Interfaces]] | [[Category:Interfaces]] |
Latest revision as of 00:29, 26 June 2013
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.