Class CFPropertyList::Binary
In: rbBinaryCFPropertyList.rb
Parent: Object

Methods

Public Class methods

Counts the number of bytes the string will have when coded; utf-16be if non-ascii characters are present.

Calculate the byte needed for a „normal” integer value

calculate how many bytes are needed to save count

calculate the bytes needed for a size integer value

Convert the given string from one charset to another

Count characters considering character set

create integer bytes of int

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

„unique” and count values. „Unique” means, several objects (e.g. strings) will only be saved once and referenced later

[Validate]