C# Class TouchDB.Mono.TDBlobStore

Datei anzeigen Open project: jzablocki/TouchDB-Mono

Public Methods

Method Description
DeleteBlobExceptWithKeys ( IList keysToKeep ) : int
GetBlobForKey ( TDBlobKey key ) : byte[]
GetBlobStreamForKey ( TDBlobKey key ) : Stream
GetBytesFromFile ( FileInfo file ) : byte[]
GetKeyForBlob ( byte bytes ) : TDBlobKey
GetKeyForBlobFromFile ( FileInfo file ) : TDBlobKey
GetKeyForFileName ( TDBlobKey outKey, string fileName ) : bool
GetPathForKey ( TDBlobKey key ) : string
GetSizeOfBlob ( TDBlobKey key ) : long
StoreBlob ( byte data, TDBlobKey outKey ) : bool
StoreBlobStream ( Stream stream, TDBlobKey outKey ) : bool
TDBlobStore ( string path ) : System

Method Details

DeleteBlobExceptWithKeys() public method

public DeleteBlobExceptWithKeys ( IList keysToKeep ) : int
keysToKeep IList
return int

GetBlobForKey() public method

public GetBlobForKey ( TDBlobKey key ) : byte[]
key TDBlobKey
return byte[]

GetBlobStreamForKey() public method

public GetBlobStreamForKey ( TDBlobKey key ) : Stream
key TDBlobKey
return Stream

GetBytesFromFile() public static method

public static GetBytesFromFile ( FileInfo file ) : byte[]
file System.IO.FileInfo
return byte[]

GetKeyForBlob() public static method

public static GetKeyForBlob ( byte bytes ) : TDBlobKey
bytes byte
return TDBlobKey

GetKeyForBlobFromFile() public static method

public static GetKeyForBlobFromFile ( FileInfo file ) : TDBlobKey
file System.IO.FileInfo
return TDBlobKey

GetKeyForFileName() public method

public GetKeyForFileName ( TDBlobKey outKey, string fileName ) : bool
outKey TDBlobKey
fileName string
return bool

GetPathForKey() public method

public GetPathForKey ( TDBlobKey key ) : string
key TDBlobKey
return string

GetSizeOfBlob() public method

public GetSizeOfBlob ( TDBlobKey key ) : long
key TDBlobKey
return long

StoreBlob() public method

public StoreBlob ( byte data, TDBlobKey outKey ) : bool
data byte
outKey TDBlobKey
return bool

StoreBlobStream() public method

public StoreBlobStream ( Stream stream, TDBlobKey outKey ) : bool
stream Stream
outKey TDBlobKey
return bool

TDBlobStore() public method

public TDBlobStore ( string path ) : System
path string
return System