BitMiracle.LibTiff.Classic.TiffStream.Write C# (CSharp) Method

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
        public virtual void Write(object clientData, byte[] buffer, int offset, int count)
        {
            Stream stream = clientData as Stream;
            if (stream == null)
                throw new ArgumentException("Can't get underlying stream to write to");

            stream.Write(buffer, offset, count);
        }