Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431070
NoSeekStream.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
NoSeekStream.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
GuzzleHttp\Psr7
;
use
Psr\Http\Message\StreamInterface
;
/**
* Stream decorator that prevents a stream from being seeked.
*/
final
class
NoSeekStream
implements
StreamInterface
{
use
StreamDecoratorTrait
;
/** @var StreamInterface */
private
$stream
;
public
function
seek
(
$offset
,
$whence
=
SEEK_SET
):
void
{
throw
new
\RuntimeException
(
'Cannot seek a NoSeekStream'
);
}
public
function
isSeekable
():
bool
{
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:03 (2 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
04/c3/b9f46acf47464a4a426741645fb6
Default Alt Text
NoSeekStream.php (524 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment