示例#1
0
文件: buffer.php 项目: estvoyage/data
 function numberOfBytesConsumedByDataConsumerIs(data\consumer $dataConsumer, data\data\numberOfBytes $bytes)
 {
     $data = substr($this->data, $bytes->asInteger);
     if ($data) {
         $dataConsumer->newData(new data\data($data));
     }
     return $this;
 }
示例#2
0
文件: buffer.php 项目: estvoyage/data
 function dataConsumerIs(data\consumer $consumer)
 {
     $consumer->newData($this->data);
     return $this;
 }
示例#3
0
 function dataConsumerIs(data\consumer $dataConsumer)
 {
     $dataConsumer->newData(self::newJsonFromData($this->data));
     return $this;
 }
示例#4
0
文件: generic.php 项目: estvoyage/csv
 function dataConsumerIs(data\consumer $dataConsumer)
 {
     $dataConsumer->newData(new data\data($this->data));
     $this->data = '';
     return $this;
 }
示例#5
0
文件: generic.php 项目: estvoyage/csv
 function dataConsumerIs(data\consumer $dataConsumer)
 {
     $dataConsumer->dataProviderIs($this->template);
     return $this;
 }