4 module rt.typeinfo.ti_byte;
6 class TypeInfo_g : TypeInfo
8 string toString() { return "byte"; }
10 hash_t getHash(in void* p)
12 return *cast(byte *)p;
15 equals_t equals(in void* p1, in void* p2)
17 return *cast(byte *)p1 == *cast(byte *)p2;
20 int compare(in void* p1, in void* p2)
22 return *cast(byte *)p1 - *cast(byte *)p2;
30 void swap(void *p1, void *p2)
35 *cast(byte *)p1 = *cast(byte *)p2;