ParseBytes

Implements \Parse\Internal\Encodable

Class ParseBytes - Representation of a Byte array for storage on a Parse Object.

author

Fosco Marotto fjm@fb.com

package

Parse

Methods

Encode to associative array representation.

_encode() : array

Response

array

Create a ParseBytes object with a given base 64 encoded data string.

createFromBase64Data(string $base64Data) : \Parse\ParseBytes
static

Arguments

$base64Data

string

Response

\Parse\ParseBytes

Create a ParseBytes object with a given byte array.

createFromByteArray(array $byteArray) : \Parse\ParseBytes
static

Arguments

$byteArray

array

Response

\Parse\ParseBytes

Decodes and unpacks a given base64 encoded array of data

setBase64Data( $base64Data) 

Arguments

$base64Data

Sets a new byte array

setByteArray(array $byteArray) 

Arguments

$byteArray

array

Byte array to set

Properties

Byte array.

byteArray : array
var

Type(s)

array