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.
getName( $dataTypeID) : string
$dataTypeID | int The id to lookup the name for |
The name of the data type.
needsBuckets() : boolean
Checks if all the necessary buckets have been supplied and processed.
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275true if all buckets complete, FALSE otherwise
getTreeLefts() : array
Returns the Radix Trie "left" pointers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275Radix Trie "left" pointers
getTreeRights() : array
Returns the Radix Trie "right" pointers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275Radix Trie "right" pointers
getTreeProperties() : array
Returns the properties used in the Radix Trie nodes
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275Radix Trie nodes
getPropertyNames() : \DeviceAtlas\Carrier\[PropertyNames]
Returns the property names array
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275getPropertyNamesAsStrings() : \DeviceAtlas\Property
Returns the property names array
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275names as string
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 |
processIpv4TreeBucket( $data)
Load the data for the IPv4 Tree bucket. This bucket has the following structure: <pre> These 3 ints repeat for the entire bucket: <repeating> 4B properties ID value 4B Left value 4B Right value </repeating> </pre>
$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