Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_ByteStream_AbstractFilterableInputStream
  • Swift_ByteStream_ArrayByteStream
  • Swift_ByteStream_FileByteStream

Interfaces

  • Swift_FileStream
  • Swift_InputByteStream
  • Swift_OutputByteStream
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Swift_ByteStream_ArrayByteStream

Allows reading and writing of bytes to and from an array.

Swift_ByteStream_ArrayByteStream implements Swift_InputByteStream, Swift_OutputByteStream
Package: Swift\ByteStream
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/ByteStream/ArrayByteStream.php
Methods summary
public
# __construct( mixed $stack = null )

Create a new ArrayByteStream. If $stack is given the stream will be populated with the bytes it contains.

Create a new ArrayByteStream. If $stack is given the stream will be populated with the bytes it contains.

Parameters

$stack
of bytes in string or array form, optional
public string
# read( integer $length )

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Parameters

$length

Returns

string

Throws

Swift_IoException

Implementation of

Swift_OutputByteStream::read()
public integer
# write( string $bytes )

Writes $bytes to the end of the stream.

Writes $bytes to the end of the stream.

Parameters

$bytes

Returns

integer

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::write()
public
# commit( )

Not used.

Not used.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::commit()
public
# bind( Swift_InputByteStream $is )

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_ByteStream_ArrayByteStream::write() and Swift_ByteStream_ArrayByteStream::flushBuffers() operations will be mirrored.

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_ByteStream_ArrayByteStream::write() and Swift_ByteStream_ArrayByteStream::flushBuffers() operations will be mirrored.

Parameters

$is

Implementation of

Swift_InputByteStream::bind()
public
# unbind( Swift_InputByteStream $is )

Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Parameters

$is

Implementation of

Swift_InputByteStream::unbind()
public boolean
# setReadPointer( integer $byteOffset )

Move the internal read pointer to $byteOffset in the stream.

Move the internal read pointer to $byteOffset in the stream.

Parameters

$byteOffset

Returns

boolean

Throws

Swift_IoException

Implementation of

Swift_OutputByteStream::setReadPointer()
public
# flushBuffers( )

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.

Flush the contents of the stream (empty it) and set the internal pointer to the beginning.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::flushBuffers()
Properties summary
private string[] $_array

The internal stack of bytes.

The internal stack of bytes.

# array()
private integer $_arraySize

The size of the stack

The size of the stack

# 0
private integer $_offset

The internal pointer offset.

The internal pointer offset.

# 0
private array $_mirrors

Bound streams

Bound streams

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen