C# Класс BitMiracle.LibTiff.Classic.TiffStream

A stream used by the library for TIFF reading and writing.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Close() публичный Метод

Closes the current stream.
public Close ( object clientData ) : void
clientData object A client data (by default, an underlying stream).
Результат void

Read() публичный Метод

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.
Результат int

Seek() публичный Метод

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.
Результат long

Size() публичный Метод

Gets the length in bytes of the stream.
public Size ( object clientData ) : long
clientData object A client data (by default, an underlying stream).
Результат long

Write() публичный Метод

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.
Результат void