Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Swift_Encoder_Base64Encoder
PHP Class Swift_Encoder_Base64Encoder, Halite
Author:
Chris Corbyn
Inheritance:
implements
Swift_Encoder
Datei anzeigen
Open project: HaliteChallenge/Halite
Class Usage Examples
Public Methods
Method
Description
charsetChanged
(
$charset
)
Does nothing.
encodeString
(
string
$string
,
integer
$firstLineOffset
,
integer
$maxLineLength
) :
string
Takes an unencoded string and produces a Base64 encoded string from it.
Method Details
charsetChanged()
public
method
Does nothing.
public
charsetChanged
(
$charset
)
encodeString()
public
method
Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.
public
encodeString
(
string
$string
,
integer
$firstLineOffset
,
integer
$maxLineLength
) :
string
$string
string
to encode
$firstLineOffset
integer
$maxLineLength
integer
optional, 0 indicates the default of 76 bytes
return
string