Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 63... Línea 63...
63
    public function getCurrentIv()
63
    public function getCurrentIv()
64
    {
64
    {
65
        return $this->cipherMethod->getCurrentIv();
65
        return $this->cipherMethod->getCurrentIv();
66
    }
66
    }
Línea 67... Línea 67...
67
 
67
 
68
    public function getSize()
68
    public function getSize(): ?int
69
    {
69
    {
Línea 70... Línea 70...
70
        $plainTextSize = $this->stream->getSize();
70
        $plainTextSize = $this->stream->getSize();
71
 
71
 
Línea 78... Línea 78...
78
        }
78
        }
Línea 79... Línea 79...
79
 
79
 
80
        return $plainTextSize;
80
        return $plainTextSize;
Línea 81... Línea 81...
81
    }
81
    }
82
 
82
 
83
    public function isWritable()
83
    public function isWritable(): bool
84
    {
84
    {
Línea 85... Línea 85...
85
        return false;
85
        return false;
86
    }
86
    }
87
 
87
 
88
    public function read($length)
88
    public function read($length): string
89
    {
89
    {
90
        if ($length > strlen($this->buffer)) {
90
        if ($length > strlen($this->buffer)) {
Línea 99... Línea 99...
99
        $this->buffer = substr($this->buffer, $length);
99
        $this->buffer = substr($this->buffer, $length);
Línea 100... Línea 100...
100
 
100
 
101
        return $data ? $data : '';
101
        return $data ? $data : '';
Línea 102... Línea 102...
102
    }
102
    }
103
 
103
 
104
    public function seek($offset, $whence = SEEK_SET)
104
    public function seek($offset, $whence = SEEK_SET): void
105
    {
105
    {
106
        if ($offset === 0 && $whence === SEEK_SET) {
106
        if ($offset === 0 && $whence === SEEK_SET) {
107
            $this->buffer = '';
107
            $this->buffer = '';