Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Swift_StreamFilters_ByteArrayReplacementFilter

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php

Class Overview


Processes bytes as they pass through a buffer and replaces sequences in it.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 18]
Processes bytes as they pass through a buffer and replaces sequences in it.

This stream filter deals with Byte arrays rather than simple strings.




Tags:

author:  Chris Corbyn


[ Top ]


Class Methods


constructor __construct [line 43]

Swift_StreamFilters_ByteArrayReplacementFilter __construct( array $search, array $replace)

Create a new ByteArrayReplacementFilter with $search and $replace.



Tags:

access:  public


Parameters:

array   $search  
array   $replace  

[ Top ]

method filter [line 119]

array filter( array $buffer, [int $_minReplaces = -1])

Perform the actual replacements on $buffer and return the result.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::filter()
Filters $buffer and returns the changes.

Parameters:

array   $buffer  
int   $_minReplaces  

[ Top ]

method shouldBuffer [line 104]

bool shouldBuffer( array $buffer)

Returns true if based on the buffer passed more bytes should be buffered.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::shouldBuffer()
Based on the buffer given, this returns true if more buffering is needed.

Parameters:

array   $buffer  

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:45:51 +0000 by phpDocumentor 1.4.3