Searched refs:dictionary (Results 1 - 12 of 12) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DWKdm.h3 * Compresses buffers using a dictionary based match and partial match
26 * were not in the dictionary when encoded (i.e., dictionary misses)
94 /* A structure to store each element of the dictionary. */
142 /* Set up the dictionary before performing compression or
146 dictionary[0] = 1; \
147 dictionary[1] = 1; \
148 dictionary[2] = 1; \
149 dictionary[3] = 1; \
150 dictionary[
[all...]
H A DWKdmCompress.c99 DictionaryElement dictionary[DICTIONARY_SIZE]; local
136 printf("dictionary is at %u\n", dictionary);
147 /* compute hash value, which is a byte offset into the dictionary,
148 * and add it to the base address of the dictionary. Cast back and
153 (((char*) dictionary) + HASH_TO_DICT_BYTE_OFFSET(input_word));
159 RECORD_EXACT(dict_location - dictionary);
168 RECORD_PARTIAL(dict_location - dictionary, LOW_BITS(input_word));
H A DWKdmDecompress.c73 DEBUG_PRINT_2("Unpacked dictionary indices word: %.8x\n", temp);
130 DictionaryElement dictionary[DICTIONARY_SIZE]; local
240 WK_word *dict_location = dictionary + *(next_q_pos++);
246 WK_word *dict_location = dictionary + *(next_q_pos++);
265 (((char *) dictionary) + HASH_TO_DICT_BYTE_OFFSET(missed_word));
H A DIOPlatformExpert.cpp523 deviceMatch = true; // if no matching dictionary, this is not a criteria and so must match
551 // if the power tree specifies a provider dictionary but theNub is
644 // Print the keys for the given dictionary and selected contents.
659 // kprintf ("dictionary key #%d: %s\n", i, mkey->getCStringNoCopy () );
1297 OSDictionary * dictionary; local
1307 dictionary = OSDynamicCast( OSDictionary, properties );
1308 if ( dictionary == 0 ) return kIOReturnBadArgument;
1310 object = dictionary->getObject( kIOPlatformUUIDKey );
H A DIOUserClient.cpp907 bool IOUserClient::init(OSDictionary * dictionary) argument
912 return super::init(dictionary);
/macosx-10.5.8/xnu-1228.15.4/libkern/c++/
H A DOSDictionary.cpp71 dictionary = (dictEntry *) kalloc(size);
72 if (!dictionary)
75 bzero(dictionary, size);
174 bcopy(dict->dictionary, dictionary, count * sizeof(dictEntry));
176 dictionary[i].key->taggedRetain(OSTypeID(OSCollection));
177 dictionary[i].value->taggedRetain(OSTypeID(OSCollection));
242 if (dictionary) {
243 kfree(dictionary, capacity * sizeof(dictEntry));
282 bcopy(dictionary, newDic
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/
H A Dzlib.h430 If a preset dictionary is needed at this point (see inflateSetDictionary
432 dictionary chosen by the compressor and returns Z_NEED_DICT; otherwise
442 preset dictionary is needed at this point, Z_DATA_ERROR if the input data was
515 const Bytef *dictionary,
518 Initializes the compression dictionary from the given byte sequence
522 dictionary (see inflateSetDictionary).
524 The dictionary should consist of strings (byte sequences) that are likely
526 used strings preferably put towards the end of the dictionary. Using a
527 dictionary is most useful when the data to be compressed is short and can be
529 with the default empty dictionary
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/bsddev/
H A DIOKitBSDInit.cpp864 OSDictionary *dictionary; local
871 dictionary = IOService::serviceMatching( "IOMedia" );
872 if( dictionary ) {
878 dictionary->setObject( kIOBSDNameKey, dev_name );
879 dictionary->retain();
880 service = IOService::waitForService( dictionary, &tv );
891 dictionary->release();
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/c++/
H A DOSDictionary.h50 An instance of OSDictionary is a mutable container which contains a list of OSMetaClassBase derived object references and these objects are identified and acquired by unique associative keys. When an object is placed into a dictionary, a unique identifier or key must provided to identify the object within the collection. The key then must be provided to find the object within the collection. If an object is not found within the collection, a 0 is returned. Placing an object into a dictionary for a key, which already identifies an object within that dictionary, will replace the current object with the new object.
52 Objects placed into a dictionary are automatically retained and objects removed or replaced are automatically released. All objects are released when the collection is freed.
63 dictEntry *dictionary; member in class:OSDictionary
83 @param capacity The initial storage capacity of the dictionary object.
92 @param count The number of items to be placed into the dictionary.
93 @param capacity The initial storage capacity of the dictionary object. If 0, the capacity will be set to the size of 'count', else this value must be greater or equal to 'count'.
105 @param count The number of items to be placed into the dictionary.
106 @param capacity The initial storage capacity of the dictionary objec
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOUserClient.h226 virtual bool init( OSDictionary * dictionary );
H A DIORegistryEntry.h60 @discussion The IORegistryEntry base class provides functions for describing graphs of connected registry entries, each with a dictionary-based property table. Entries may be connected in different planes, with differing topologies. Access to the registry is protected against multiple threads. Inside the kernel planes are specified with plane objects and are published by the creator - IOService exports the gIOServicePlane plane object for example. Non kernel clients specify planes by their name.
242 @discussion A registry entry must be initialized with this method before it can be used. A property dictionary may passed and will be retained by this method for use as the registry entry's property table, or an empty one will be created.
243 @param A dictionary that will become the registry entry's property table (retaining it), or zero which will cause an empty property table to be created.
246 virtual bool init( OSDictionary * dictionary = 0 );
257 @param dict The new dictionary to be used as the entry's property table. */
447 @result The created dictionary, or zero on a resource value. It should be released by the caller. */
/macosx-10.5.8/xnu-1228.15.4/libkern/
H A Dzlib.c106 "need dictionary", /* Z_NEED_DICT 2 */
146 #define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */
397 * and move to the first half later to keep a dictionary of at least wSize
632 * dictionary are very simple and thus fast, and deletions are avoided
776 * Insert string str in the dictionary and set match_head to the previous head
900 deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength) argument
907 if (strm == Z_NULL || strm->state == Z_NULL || dictionary == Z_NULL ||
911 strm->adler = adler32(strm->adler, dictionary, dictLength);
917 dictionary += dictLength - length; /* use the tail of the dictionary */
[all...]

Completed in 120 milliseconds