public static function wrap($state, $smbStream, $mode, $url) {
		stream_wrapper_register('nativesmb', NativeStream::class);
		$context = stream_context_create([
			'nativesmb' => [
				'state'  => $state,
				'handle' => $smbStream,
				'url'    => $url
			]
		]);
		$fh = fopen('nativesmb://', $mode, false, $context);
		stream_wrapper_unregister('nativesmb');
		return $fh;
	}
public static function wrap($state, $smbStream, $mode, $url) {
		stream_wrapper_register('nativesmb', NativeStream::class);
		$context = stream_context_create([
			'nativesmb' => [
				'state'  => $state,
				'handle' => $smbStream,
				'url'    => $url
			]
		]);
		$fh = fopen('nativesmb://', $mode, false, $context);
		stream_wrapper_unregister('nativesmb');
		return $fh;
	}
public static function wrap ( $ state , $ smbStream , $ mode , $ url ) { stream_wrapper_register ( 'nativesmb' , NativeStream :: class ) ; $ context = stream_context_create ( [ 'nativesmb' => [ 'state' => $ state , 'handle' => $ smbStream , 'url' => $ url ] ] ) ; $ fh = fopen ( 'nativesmb://' , $ mode , false , $ context ) ; stream_wrapper_unregister ( 'nativesmb' ) ; return $ fh ; }
Wrap a stream from libsmbclient-php into a regular php stream

@param \Icewind\SMB\NativeState $state
@param resource $smbStream
@param string $mode
@param string $url
@return resource
Wrap a stream from libsmbclient - php into a regular php stream