Lines Matching refs:Header
24 // Lay out a header file for testing.
26 HMapHeader Header;
32 Header.Magic = HMAP_HeaderMagicNumber;
33 Header.Version = HMAP_HeaderVersion;
34 Header.NumBuckets = NumBuckets;
35 Header.StringsOffset = sizeof(Header) + sizeof(Buckets);
40 Header.Magic = getSwappedBytes(Header.Magic);
41 Header.Version = getSwappedBytes(Header.Version);
42 Header.NumBuckets = getSwappedBytes(Header.NumBuckets);
43 Header.StringsOffset = getSwappedBytes(Header.StringsOffset);
49 "header",
54 // The header map hash function.
76 assert(!(File.Header.NumBuckets & (File.Header.NumBuckets - 1)));
77 unsigned I = Hash & (File.Header.NumBuckets - 1);
83 ++File.Header.NumEntries;
87 I &= File.Header.NumBuckets - 1;
88 } while (I != (Hash & (File.Header.NumBuckets - 1)));
104 File.Header.Magic = 0;
112 File.Header.Reserved = 1;
120 ++File.Header.Version;
150 File.Header.NumBuckets = 0;
158 File.Header.NumBuckets = 8;