Article: KB-037

  Functions Description
Common Common functions that are used at the beginning of every operation
Scan Device

SKStorageDeviceUtils::scanDevices

Scan for storage devices. This is the first function that every application will do. This function returns a list of storages that it can detect and communicate with.
Read device identify

SKCCoreDelegate::identifyDevice

This function is to retrieve device identify information, which provides information about what device this is, serial number, supported features and current settings
Base Fundamental test functions
Write LBA

SKTTestDelegate::writeLBA

This function writes directly to storage device without the interference of the file system.

It is useful to test and debug storage device or measure response time from storage device.

Note: Only attempt this on blank storage or you know what you are doing with storage test and understanding how file system works.

Read LBA

SKTTestDelegate::readLBA

This function reads directly from storage device without the interference of the file system.
Sequential write test

SKTTestDelegate::sequentialWritePerformanceTest

This function performs a sequential write test on the storage device and return performance data. The performance data is calculated based on the amount data written and duration of the test.
Sequential read test

SKTTestDelegate::sequentialReadPerformanceTest

This function performs a sequential read test on the storage device and return performance data. The performance data is calculated based on the amount data read and duration of the test.
Random write test

SKTTestDelegate::randomWritePerformanceTest

This function performs a random write test on the storage device and return performance data. The performance data is calculated based on the amount data written and duration of the test.
Random read test

SKTTestDelegate::randomReadPerformanceTest

This function performs a random read test on the storage device and return performance data. The performance data is calculated based on the amount data read and duration of the test.
Plus More advanced test functions
Sequential write with unique pattern

SKTTestDelegate::sequentialWriteWithUniquePatterns

This function writes unique data pattern for each LBA. The data is written in way that it can be read and verified later without a need to store data in memory for verification.

The writes are sequential.

Random write with unique pattern

SKTTestDelegate::randomWriteWithUniquePatterns

This function writes unique data pattern for each LBA. The data is written in way that it can be read and verified later without a need to store data in memory for verification.

The writes are random.

Verify data integrity

SKTTestDelegate::verifyPreviousSequentialWriteData

SKTTestDelegate::verifyPreviousRandomWriteData

This function works in conjunction with “sequential write with unique pattern” or “random write with unique pattern.”

It reads data from the drive and use the information in the data itself to verify whether the data is OK or corrupted.