C# Class BinaryRage.Storage

Show file Open project: raysearchlabs/BinaryRage

Public Methods

Method Description
ExistingStorageCheck ( string key, string filelocation ) : bool
GetExactFileLocation ( string key, string filelocation ) : string
GetFromStorage ( string key, string filelocation ) : byte[]
GetFromStorageWithKnownFileLocation ( string filelocation ) : byte[]
WritetoStorage ( string key, byte value, string filelocation ) : void

Private Methods

Method Description
CombinePathAndKey ( string path, string key ) : string
GetFolders ( string key, string filelocation ) : IEnumerable
createDirectoriesBasedOnKeyAndFilelocation ( string key, string filelocation ) : string

Method Details

ExistingStorageCheck() public static method

public static ExistingStorageCheck ( string key, string filelocation ) : bool
key string
filelocation string
return bool

GetExactFileLocation() public static method

public static GetExactFileLocation ( string key, string filelocation ) : string
key string
filelocation string
return string

GetFromStorage() public static method

public static GetFromStorage ( string key, string filelocation ) : byte[]
key string
filelocation string
return byte[]

GetFromStorageWithKnownFileLocation() public static method

public static GetFromStorageWithKnownFileLocation ( string filelocation ) : byte[]
filelocation string
return byte[]

WritetoStorage() public static method

public static WritetoStorage ( string key, byte value, string filelocation ) : void
key string
value byte
filelocation string
return void