Documentation

Horde_Stream_Filter_Crc32 extends php_user_filter
in package

Stream filter class to compute the CRC32 value of a string.

Usage:

  $params = new stdClass;
  stream_filter_register('horde_crc32', 'Horde_Stream_Filter_Crc32');
  stream_filter_[app|pre]pend($stream, 'horde_crc32',
                              [ STREAM_FILTER_[READ|WRITE|ALL] ],
                              [ $params ]);
  while (fread($stream, 8192)) }
  // CRC32 data in $params->crc32

Copyright 2011-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

filter()  : mixed
onCreate()  : mixed
_crc32Combine()  : mixed
_gf2MatrixSquare()  : mixed
_gf2MatrixTimes()  : mixed

Methods

filter()

public filter(mixed $in, mixed $out, mixed &$consumed, mixed $closing) : mixed
Parameters
$in : mixed
$out : mixed
$consumed : mixed
$closing : mixed
Tags
see
stream_filter_register()
Return values
mixed

onCreate()

public onCreate() : mixed
Tags
see
stream_filter_register()
Return values
mixed

_crc32Combine()

protected _crc32Combine(mixed $crc1, mixed $crc2, mixed $len2) : mixed
Parameters
$crc1 : mixed
$crc2 : mixed
$len2 : mixed
Return values
mixed

_gf2MatrixSquare()

protected _gf2MatrixSquare(mixed &$square, mixed &$mat) : mixed
Parameters
$square : mixed
$mat : mixed
Return values
mixed

_gf2MatrixTimes()

protected _gf2MatrixTimes(mixed $mat, mixed $vec) : mixed
Parameters
$mat : mixed
$vec : mixed
Return values
mixed

Search results