Class CFPropertyList::Binary
In: lib/cfpropertylist/rbBinaryCFPropertyList.rb
Parent: Object

Binary PList parser class

Methods

Public Class methods

calculate how many bytes are needed to save count

Convert the given string from one charset to another

Count characters considering character set

pack an int of nbytes with size

Create a type byte for binary format as defined by apple

Public Instance methods

Convert array to binary format and add it to the object table

Convert a bool value to binary and add it to the object table

Convert data value to binary format and add it to the object table

Convert date value (apple format) to binary and adds it to the object table

Convert dictionary to binary format and add it to the object table

Codes an integer to binary format

Read a binary plist file

Converts a numeric value to binary and adds it to the object table

Codes a real value to binary format

Uniques and transforms a string value to binary format and adds it to the object table

Convert CFPropertyList to binary format; since we have to count our objects we simply unique CFDictionary and CFArray

Protected Instance methods

Read an binary array value, including contained objects

Read a binary data value

read a binary date value

Read a dictionary value, including contained objects

read a binary int value

read a „null” type (i.e. null byte, marker byte, bool value)

Read an object type byte, decode it and delegate to the correct reader function

Read an object type byte at position $pos, decode it and delegate to the correct reader function

read a binary real value

Read a binary string value

Read a unicode string value, coded as UTF-16BE

[Validate]