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 77... Línea 77...
77
        }
77
        }
Línea 78... Línea 78...
78
 
78
 
79
        return $plainTextSize;
79
        return $plainTextSize;
Línea 80... Línea 80...
80
    }
80
    }
81
 
81
 
82
    public function isWritable()
82
    public function isWritable(): bool
83
    {
83
    {
Línea 84... Línea 84...
84
        return false;
84
        return false;
85
    }
85
    }
86
 
86
 
87
    public function read($length)
87
    public function read($length): string
88
    {
88
    {
89
        if ($length > strlen($this->buffer)) {
89
        if ($length > strlen($this->buffer)) {
Línea 97... Línea 97...
97
        $this->buffer = substr($this->buffer, $length);
97
        $this->buffer = substr($this->buffer, $length);
Línea 98... Línea 98...
98
 
98
 
99
        return $data ? $data : '';
99
        return $data ? $data : '';
Línea 100... Línea 100...
100
    }
100
    }
101
 
101
 
102
    public function seek($offset, $whence = SEEK_SET)
102
    public function seek($offset, $whence = SEEK_SET): void
103
    {
103
    {
104
        if ($whence === SEEK_CUR) {
104
        if ($whence === SEEK_CUR) {
105
            $offset = $this->tell() + $offset;
105
            $offset = $this->tell() + $offset;