Home
last modified time | relevance | path

Searched full:stream (Results 1 – 25 of 1243) sorted by relevance

12345678910>>...50

/plugin/elasticsearch/vendor/ezimuel/guzzlestreams/tests/
DStreamTest.php2 namespace GuzzleHttp\Tests\Stream;
4 use GuzzleHttp\Stream\Stream; alias
9 * @covers GuzzleHttp\Stream\Stream
16 new Stream(true);
23 $stream = new Stream($handle);
24 $this->assertTrue($stream->isReadable());
25 $this->assertTrue($stream->isWritable());
26 $this->assertTrue($stream->isSeekable());
27 $this->assertEquals('php://temp', $stream->getMetadata('uri'));
28 $this->assertIsArray($stream->getMetadata());
[all …]
/plugin/asciidocjs/node_modules/token-stream/
DREADME.md1 # token-stream
5 …s](https://img.shields.io/travis/jadejs/token-stream/master.svg)](https://travis-ci.org/jadejs/tok…
6 …s](https://img.shields.io/gemnasium/jadejs/token-stream.svg)](https://gemnasium.com/jadejs/token-s…
7 …[NPM version](https://img.shields.io/npm/v/token-stream.svg)](https://www.npmjs.org/package/token-
11 npm install token-stream
16 var TokenStream = require('token-stream');
18 var stream = new TokenStream([
24 assert(stream.peek() === 'a');
25 assert(stream.lookahead(0) == 'a');
26 assert(stream.lookahead(1) == 'b');
[all …]
/plugin/findologicxmlexport/vendor/hoa/stream/
DREADME.md8 …<a href="https://travis-ci.org/hoaproject/stream"><img src="https://img.shields.io/travis/hoaproje…
9 …s://coveralls.io/github/hoaproject/stream?branch=master"><img src="https://img.shields.io/coverall…
10 …<a href="https://packagist.org/packages/hoa/stream"><img src="https://img.shields.io/packagist/dt/…
11 …<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/stream.…
19 # Hoa\Stream
23 …/documentation-hack_book-ff0066.svg)](https://central.hoa-project.net/Documentation/Library/Stream)
24 …](https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/stream)
29 * Stream manipulations: Open, close, auto-close, timeout, blocking
31 * Stream notifications: Depending of the stream wrapper, the
35 * Context: Allow to pass options and parameters to the stream
[all …]
DStream.php37 namespace Hoa\Stream;
44 * Class \Hoa\Stream.
51 abstract class Stream implements IStream\Stream, Event\Listenable class
56 * Name index in the stream bucket.
63 * Handler index in the stream bucket.
70 * Resource index in the stream bucket.
77 * Context index in the stream bucket.
91 * Current stream bucket.
98 * Static stream register.
112 * Original stream name, given to the stream constructor.
[all …]
/plugin/authgooglesheets/vendor/guzzlehttp/psr7/src/
DStream.php8 * PHP stream implementation.
10 * @var $stream
12 class Stream implements StreamInterface class
25 private $stream; variable in GuzzleHttp\\Psr7\\Stream
36 * - size: (int) If a read stream would otherwise have an indeterminate
40 * of the stream is accessed.
42 * @param resource $stream Stream resource to wrap.
45 * @throws \InvalidArgumentException if the stream is not a stream resource
47 public function __construct($stream, $options = []) argument
49 if (!is_resource($stream)) {
[all …]
DStreamWrapper.php8 * Converts Guzzle streams into PHP stream resources.
18 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper
24 * Returns a resource representing the stream.
26 * @param StreamInterface $stream The stream to get a resource for
30 * @throws \InvalidArgumentException if stream is not readable or writable
32 public static function getResource(StreamInterface $stream) argument
36 if ($stream->isReadable()) {
37 $mode = $stream->isWritable() ? 'r+' : 'r';
38 } elseif ($stream->isWritable()) {
41 throw new \InvalidArgumentException('The stream must be readable, '
[all …]
DStreamDecoratorTrait.php8 * Stream decorator trait
10 * @property StreamInterface stream
15 * @param StreamInterface $stream Stream to decorate
17 public function __construct(StreamInterface $stream) argument
19 $this->stream = $stream;
23 * Magic method used to create a new stream if streams are not added in
26 * @param string $name Name of the property (allows "stream" only).
32 if ($name == 'stream') {
33 $this->stream = $this->createStream();
34 return $this->stream;
[all …]
/plugin/elasticsearch/vendor/ezimuel/guzzlestreams/src/
DUtils.php2 namespace GuzzleHttp\Stream;
4 use GuzzleHttp\Stream\Exception\SeekException;
13 * Safely opens a PHP stream resource using a filename.
48 * Copy the contents of a stream into a string until the given number of
51 * @param StreamInterface $stream Stream to read
53 * to read the entire stream.
56 public static function copyToString(StreamInterface $stream, $maxLen = -1) argument
61 while (!$stream->eof()) {
62 $buf = $stream->read(1048576);
72 while (!$stream->eof() && $len < $maxLen) {
[all …]
DStreamInterface.php2 namespace GuzzleHttp\Stream;
5 * Describes a stream instance.
10 * Attempts to seek to the beginning of the stream and reads all data into
11 * a string until the end of the stream is reached.
20 * Closes the stream and any underlying resources.
25 * Separates any underlying resources from the stream.
27 * After the underlying resource has been detached, the stream object is in
28 * an unusable state. If you wish to use a Stream object as a PHP stream
29 * but keep the Stream object in a consistent state, use
30 * {@see GuzzleHttp\Stream\GuzzleStreamWrapper::getResource}.
[all …]
DCachingStream.php2 namespace GuzzleHttp\Stream;
4 use GuzzleHttp\Stream\Exception\SeekException;
7 * Stream decorator that can cache previously read bytes from a sequentially
8 * read stream.
14 /** @var StreamInterface Stream being wrapped */
21 * We will treat the buffer object as the body of the stream
23 * @param StreamInterface $stream Stream to cache
27 StreamInterface $stream, argument
30 $this->remoteStream = $stream;
31 $this->stream = $target ?: new Stream(fopen('php://temp', 'r+'));
[all …]
DStream.php2 namespace GuzzleHttp\Stream;
5 * PHP stream implementation
7 class Stream implements StreamInterface class
9 private $stream; variable in GuzzleHttp\\Stream\\Stream
17 /** @var array Hash of readable and writable stream types */
34 * Create a new stream based on the input type.
42 * @return Stream
50 $stream = fopen('php://temp', 'r+');
52 fwrite($stream, $resource);
53 fseek($stream, 0);
[all …]
DStreamDecoratorTrait.php2 namespace GuzzleHttp\Stream;
4 use GuzzleHttp\Stream\Exception\CannotAttachException;
7 * Stream decorator trait
8 * @property StreamInterface stream
13 * @param StreamInterface $stream Stream to decorate
15 public function __construct(StreamInterface $stream) argument
17 $this->stream = $stream;
21 * Magic method used to create a new stream if streams are not added in
26 if ($name == 'stream') {
27 $this->stream = $this->createStream();
[all …]
DGuzzleStreamWrapper.php2 namespace GuzzleHttp\Stream;
5 * Converts Guzzle streams into PHP stream resources.
13 private $stream; variable in GuzzleHttp\\Stream\\GuzzleStreamWrapper
19 * Returns a resource representing the stream.
21 * @param StreamInterface $stream The stream to get a resource for
24 * @throws \InvalidArgumentException if stream is not readable or writable
26 public static function getResource(StreamInterface $stream) argument
30 if ($stream->isReadable()) {
31 $mode = $stream->isWritable() ? 'r+' : 'r';
32 } elseif ($stream->isWritable()) {
[all …]
/plugin/matrixnotifierwas/vendor/guzzlehttp/psr7/src/
DStream.php10 * PHP stream implementation.
12 class Stream implements StreamInterface class
22 private $stream; variable in GuzzleHttp\\Psr7\\Stream
39 * - size: (int) If a read stream would otherwise have an indeterminate
43 * of the stream is accessed.
45 * @param resource $stream Stream resource to wrap.
48 * @throws \InvalidArgumentException if the stream is not a stream resource
50 public function __construct($stream, array $options = []) argument
52 if (!is_resource($stream)) {
53 throw new \InvalidArgumentException('Stream must be a resource');
[all …]
DStreamWrapper.php10 * Converts Guzzle streams into PHP stream resources.
20 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper
26 * Returns a resource representing the stream.
28 * @param StreamInterface $stream The stream to get a resource for
32 * @throws \InvalidArgumentException if stream is not readable or writable
34 public static function getResource(StreamInterface $stream) argument
38 if ($stream->isReadable()) {
39 $mode = $stream->isWritable() ? 'r+' : 'r';
40 } elseif ($stream->isWritable()) {
43 throw new \InvalidArgumentException('The stream must be readable, '
[all …]
/plugin/findologicxmlexport/vendor/hoa/stream/Test/Unit/
DStream.php37 namespace Hoa\Stream\Test\Unit;
40 use Hoa\Stream as LUT;
44 * Class \Hoa\Stream\Test\Unit\Stream.
46 * Test suite of the stream class.
51 class Stream extends Test\Unit\Suite class
59 ->isInstanceOf(LUT\IStream\Stream::class)
109 ->boolean(Event::eventExists('hoa://Event/Stream/' . $name))
111 ->boolean(Event::eventExists('hoa://Event/Stream/' . $name . ':close-before'))
152 $stream = new SUT($name, null, true)
154 ->when($result = $stream->open())
[all …]
/plugin/codemirror/dist/modes/
Dpug.min.js.map1stream","state","sol","peek","tok","token","eol","yieldStatement","match","doctype","interpolation…
Dtroff.min.js.map1stream","eatSpace","sol","ch","next","match","skipTo","eatWhile","eat","skipToEnd","cur","current"…
Dsass.min.js.map1stream","peek","match","urlTokens","state","ch","next","tokenizer","tokenBase","eatSpace","buildSt…
/plugin/elasticsearch/vendor/ezimuel/guzzlestreams/
DCHANGELOG.rst12 * Moved ``GuzzleHttp\Stream\MetadataStreamInterface::getMetadata`` to
13 ``GuzzleHttp\Stream\StreamInterface``. MetadataStreamInterface is no longer
15 * Added ``attach()`` to ``GuzzleHttp\Stream\StreamInterface`` for PSR-7
19 ``GuzzleHttp\Stream\StreamInterface::getContents()``. This function now
20 returns the entire remainder of the stream. If you want to limit the maximum
21 amount of data read from the stream, use the
22 ``GuzzleHttp\Stream\Utils::copyToString()`` function.
26 ``eof()`` method when the stream is consumed.
27 * ``GuzzleHttp\Stream\Stream::__construct``,
28 ``GuzzleHttp\Stream\Stream::factory``, and
[all …]
/plugin/scrape/vendor/symfony/css-selector/Parser/
DParser.php43 $stream = $this->tokenizer->tokenize($reader);
45 return $this->parseSelectorList($stream);
95 private function parseSelectorList(TokenStream $stream): array argument
97 $stream->skipWhitespace();
101 $selectors[] = $this->parserSelectorNode($stream);
103 if ($stream->getPeek()->isDelimiter([','])) {
104 $stream->getNext();
105 $stream->skipWhitespace();
114 private function parserSelectorNode(TokenStream $stream): Node\SelectorNode argument
116 [$result, $pseudoElement] = $this->parseSimpleSelector($stream);
[all …]
/plugin/findologicxmlexport/vendor/composer/
Dautoload_classmap.php195 'PHP_Token' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
196 'PHP_TokenWithScope' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
197 'PHP_TokenWithScopeAndVisibility' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
198 'PHP_Token_ABSTRACT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
199 'PHP_Token_AMPERSAND' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
200 'PHP_Token_AND_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
201 'PHP_Token_ARRAY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
202 'PHP_Token_ARRAY_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
203 'PHP_Token_AS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
204 'PHP_Token_ASYNC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
[all …]
/plugin/authgooglesheets/vendor/monolog/monolog/src/Monolog/Handler/
DStreamHandler.php18 * Stores to any stream resource
35 protected $stream; variable in Monolog\\Handler\\StreamHandler
48 …* @param resource|string $stream If a missing path can't be created, an UnexpectedValueExc…
52 * @throws \InvalidArgumentException If stream is not a resource or string
54 …public function __construct($stream, $level = Logger::DEBUG, bool $bubble = true, ?int $filePermis… argument
71 if (is_resource($stream)) {
72 $this->stream = $stream;
74 stream_set_chunk_size($this->stream, $this->streamChunkSize);
75 } elseif (is_string($stream)) {
76 $this->url = Utils::canonicalizePath($stream);
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
DLexerTest.php25 $stream = $lexer->tokenize('{{ foo }}', 'foo');
26 $this->assertEquals('foo', $stream->getFilename());
27 $this->assertEquals('{{ foo }}', $stream->getSource());
35 $stream = $lexer->tokenize(new Source($template, 'index'));
37 $stream->expect(Token::BLOCK_START_TYPE);
38 $this->assertSame('§', $stream->expect(Token::NAME_TYPE)->getValue());
46 $stream = $lexer->tokenize(new Source($template, 'index'));
48 $stream->expect(Token::VAR_START_TYPE);
49 $this->assertSame('§', $stream->expect(Token::NAME_TYPE)->getValue());
63 $stream = $lexer->tokenize(new Source($template, 'index'));
[all …]
/plugin/asciidocjs/node_modules/token-stream/test/
Dindex.js9 var stream = new TokenStream([ variable
16 stream.lookahead(9);
18 assert(stream.peek() === 'a');
19 assert(stream.lookahead(0) == 'a');
20 assert(stream.lookahead(1) == 'b');
22 assert(stream.advance() === 'a');
23 assert(stream.peek() === 'b');
24 assert(stream.lookahead(0) == 'b');
25 assert(stream.lookahead(1) == 'c');
27 stream.defer('z');
[all …]

12345678910>>...50