Lines Matching refs:encoder
71 static void encode(ArgumentEncoder* encoder, id object)
74 encoder->encodeEnum(type);
78 encode(encoder, static_cast<NSAttributedString *>(object));
81 encode(encoder, static_cast<NSColor *>(object));
84 encode(encoder, static_cast<NSDictionary *>(object));
87 encode(encoder, static_cast<NSFont *>(object));
90 encode(encoder, static_cast<NSNumber *>(object));
93 encode(encoder, static_cast<NSString *>(object));
159 void encode(ArgumentEncoder* encoder, NSAttributedString *string)
165 CoreIPC::encode(encoder, plainString);
183 encoder->encodeUInt64(ranges.size());
186 encoder->encodeUInt64(ranges[i].first.location);
187 encoder->encodeUInt64(ranges[i].first.length);
188 CoreIPC::encode(encoder, ranges[i].second.get());
229 void encode(ArgumentEncoder* encoder, NSColor *color)
231 encoder->encode(colorFromNSColor(color));
244 void encode(ArgumentEncoder* encoder, NSDictionary *dictionary)
252 encoder->encodeUInt64(size);
265 encode(encoder, (NSString *)key);
266 encode(encoder, value);
295 void encode(ArgumentEncoder* encoder, NSFont *font)
298 encode(encoder, [[font fontDescriptor] fontAttributes]);
313 void encode(ArgumentEncoder* encoder, NSNumber *number)
315 encode(encoder, (CFNumberRef)number);
328 void encode(ArgumentEncoder* encoder, NSString *string)
330 encode(encoder, (CFStringRef)string);