src/HashWrapper.php
public static function wrap($source, $hash, $callback) {
		$context = [
			'hash' => $hash,
			'callback' => $callback,
		];
		return self::wrapSource($source, $context);
	}
public static function wrap($source, $hash, $callback) {
		$context = [
			'hash' => $hash,
			'callback' => $callback,
		];
		return self::wrapSource($source, $context);
	}
public static function wrap ( $ source , $ hash , $ callback ) { $ context = [ 'hash' => $ hash , 'callback' => $ callback , ] ; return self :: wrapSource ( $ source , $ context ) ; }
Wraps a stream to make it seekable

@param resource $source
@param string $hash
@param callable $callback
@return resource|bool

@throws \BadMethodCallException
Wraps a stream to make it seekable