Pchp.Library.Streams.NativeStream.RawLength C# (CSharp) Method

RawLength() protected method

Returns the Length property of the underlying stream.
protected RawLength ( ) : int
return int
        protected override int RawLength()
        {
            try
            {
                return unchecked((int)stream.Length);
            }
            catch (System.Exception)
            {
                PhpException.Throw(PhpError.Warning, ErrResources.wrapper_op_unsupported, "Seek");
                return -1;
            }
        }