C# Class BitMiracle.LibTiff.Classic.TiffStream

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

Public Methods

Method 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 method

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

Read() public method

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.
return int

Seek() public method

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.
return long

Size() public method

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

Write() public method

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.
return void