Show / Hide Table of Contents

Interface IBinaryStorage

An interface for saving and loading binaries to an arbitrary storage

Namespace: Recolude.Core.IO
Assembly: Recolude.Core.dll
Syntax
public interface IBinaryStorage

Methods

Delete(String)

Delete the binary stored at a specific location

Declaration
void Delete(string location)
Parameters
Type Name Description
System.String location

Location of the binary

Exists(String)

Determines whether or not a binary exists at the specified location.

Declaration
bool Exists(string location)
Parameters
Type Name Description
System.String location

Location of the binary.

Returns
Type Description
System.Boolean

Whether or not the binary exists there.

Read(String)

Read the contents of a binary at a specific location.

Declaration
Stream Read(string location)
Parameters
Type Name Description
System.String location

Location of the binary.

Returns
Type Description
System.IO.Stream

The binary.

Write(Stream, String)

Write binary data to a specific location.

Declaration
void Write(Stream data, string location)
Parameters
Type Name Description
System.IO.Stream data

Data to store.

System.String location

Location to store it.

Back to top Generated by DocFX