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

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
        public virtual long Size(object clientData)
        {
            Stream stream = clientData as Stream;
            if (stream == null)
                throw new ArgumentException("Can't get underlying stream to retrieve size from");

            return stream.Length;
        }