C# Class BitMiracle.LibTiff.Classic.TiffStream

A stream used by the library for TIFF reading and writing.
Afficher le fichier Open project: Core-Techs/TiffLibrary Class Usage Examples

Méthodes publiques

Méthode Description
Close ( object clientData ) : void

Closes the current stream.

Read ( object clientData, byte buffer, int offset, int count ) : int

Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read.

Seek ( object clientData, long offset, SeekOrigin origin ) : long

Sets the position within the current stream.

Size ( object clientData ) : long

Gets the length in bytes of the stream.

Write ( object clientData, byte buffer, int offset, int count ) : void

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Method Details

Close() public méthode

Closes the current stream.
public Close ( object clientData ) : void
clientData object A client data (by default, an underlying stream).
Résultat void

Read() public méthode

Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read.
public Read ( object clientData, byte buffer, int offset, int count ) : int
clientData object A client data (by default, an underlying stream).
buffer byte An array of bytes. When this method returns, the /// contains the specified byte array with the values between /// and ( + - 1) /// replaced by the bytes read from the current source.
offset int The zero-based byte offset in at which /// to begin storing the data read from the current stream.
count int The maximum number of bytes to be read from the current stream.
Résultat int

Seek() public méthode

Sets the position within the current stream.
public Seek ( object clientData, long offset, SeekOrigin origin ) : long
clientData object A client data (by default, an underlying stream).
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the /// reference point used to obtain the new position.
Résultat long

Size() public méthode

Gets the length in bytes of the stream.
public Size ( object clientData ) : long
clientData object A client data (by default, an underlying stream).
Résultat long

Write() public méthode

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public Write ( object clientData, byte buffer, int offset, int count ) : void
clientData object A client data (by default, an underlying stream).
buffer byte An array of bytes. This method copies /// bytes from to the current stream.
offset int The zero-based byte offset in at which /// to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
Résultat void