A class that deals with data in Dcsbuffer.


Type Name Description
Method (void) save: (NSString *) dirName Saves all the images and documents in DcsBuffer to a folder named dirName.
Method (void) load: (NSString *) dirName Loads all the images and documents in the folder named dirName to DcsBuffer.
Type Name Description
Method (id) get: (NSInteger) index Gets the image or document at the specified index of the buffer.
Method (NSInteger) count() Returns the total number of all the images and documents.
Property (NSInteger) currentIndex Returns or sets the index of current operated data in DcsBuffer.
Method (void) delete: (NSInteger) index Deletes the image or document with the specified index.
(nonatomic, assign) NSInteger currentIndex
Description Returns or sets the index of currently operated data in DcsBuffer.
Remarks If Dcsbuffer is empty, currentIndex is -1, you can also set currentIndex to -1.
If DcsBuffer is not empty, when you set currentIndex to a negative value, or a value that equals/is larger than count, it will fail and throw an exception called DcsValueOutOfRangeException.
Is this page helpful?

Leave a Reply

Your email address will not be published.