2 module rt.typeinfo.ti_char;
4 class TypeInfo_a : TypeInfo
6 string toString() { return "char"; }
8 hash_t getHash(in void* p)
10 return *cast(char *)p;
13 equals_t equals(in void* p1, in void* p2)
15 return *cast(char *)p1 == *cast(char *)p2;
18 int compare(in void* p1, in void* p2)
20 return *cast(char *)p1 - *cast(char *)p2;
28 void swap(void *p1, void *p2)
33 *cast(char *)p1 = *cast(char *)p2;
40 return (cast(char *)&c)[0 .. 1];