C# Class PdfRpt.Core.Helper.StreamHelper

Embedded resources helper class.
Afficher le fichier Open project: VahidN/PdfReport

Méthodes publiques

Méthode Description
GetResourceByName ( string fileName ) : byte[]

Reads an embedded resource

ReopenForReading ( this stream ) : Stream

Tries to Reopen the stream for reading.

ReopenForWriting ( this stream ) : Stream

Tries to Reopen the stream for writing.

StreamToBytes ( this input ) : byte[]

Converts StreamToBytes

Method Details

GetResourceByName() public static méthode

Reads an embedded resource
public static GetResourceByName ( string fileName ) : byte[]
fileName string embedded resource file
Résultat byte[]

ReopenForReading() public static méthode

Tries to Reopen the stream for reading.
public static ReopenForReading ( this stream ) : Stream
stream this input stream
Résultat Stream

ReopenForWriting() public static méthode

Tries to Reopen the stream for writing.
public static ReopenForWriting ( this stream ) : Stream
stream this input stream
Résultat Stream

StreamToBytes() public static méthode

Converts StreamToBytes
public static StreamToBytes ( this input ) : byte[]
input this stream
Résultat byte[]