BOOLEAN
BOOLEAN = 0
Type boolean
A bucket is a section of the data file. It has an ID, length and a byte array of data. Each bucket type has a specific format. This class handles the conversion of bucket data(binary bytes) to actual values.
The following buckets are handled:
The bucket handler expects the buckets to be in the above order.
processPropertyNamesBucket( $data)
The following is the structure of this bucket: <pre> 2B Num of indexed items <repeating> 1B data type of property value 1B length of name ?B property name - ascii string </repeating> </pre> The order of the properties is taken as the index for each item.
$data |
processPropertyValuesBucket( $data)
The following is the structure of this bucket: <pre> 2B Number of indexed items <repeating>
1B container type ID: "no container", "ordered set" etc
<elseif container="ordered set">
1B property type - int, boolean, string etc
2B number of items in the set
<repeat>
<if type=string>
1B property type - the type of string -
1B/2B/4B length of value bytes --OPTIONAL-- (only applies to some string types)
</if>
?B the converted value, some data types have a fixed length such as (boolean len=1, byte len=1, short len=2, int len=4, float len=4)
</repeat>
</if>
2B Num of indexed items
The order of the items is taken as the index for each item.
$data |
processPropertiesBucket( $data)
The following is the structure of this bucket: <pre> 2B Num of indexed items <repeating> 2B num items in collection <repeating> 4B property name ID 4B property value ID </repeating> </repeating> </pre> The order of the properties is taken as the index for each item. As each item of the collection is loaded it is looked up in the previously loaded property names and property values IDs.
$data |
getPropertyValue( $dataType, $reader) : mixed
Read the appropriate property from the ByteReader depending on the data type. All of the primitive types are fixed length. In addition there are five fixed length UTF8 string values and other special types for strings that are less than certain lengths.
$dataType | ||
$reader |
Property value