C# Class LiteDB_V6.DataService

Show file Open project: faush01/Emby.Kodi.SyncQueue Class Usage Examples

Public Methods

Method Description
DataService ( PageService pager ) : System
GetBlock ( LiteDB blockAddress ) : DataBlock

Get a data block from a DataPage using address

Read ( LiteDB blockAddress ) : byte[]

Read all data from datafile using a pageID as reference. If data is not in DataPage, read from ExtendPage.

ReadExtendData ( uint extendPageID ) : byte[]

Read all data from a extended page with all subsequences pages if exits

Method Details

DataService() public method

public DataService ( PageService pager ) : System
pager PageService
return System

GetBlock() public method

Get a data block from a DataPage using address
public GetBlock ( LiteDB blockAddress ) : DataBlock
blockAddress LiteDB
return DataBlock

Read() public method

Read all data from datafile using a pageID as reference. If data is not in DataPage, read from ExtendPage.
public Read ( LiteDB blockAddress ) : byte[]
blockAddress LiteDB
return byte[]

ReadExtendData() public method

Read all data from a extended page with all subsequences pages if exits
public ReadExtendData ( uint extendPageID ) : byte[]
extendPageID uint
return byte[]