in src/internal/BinaryUtils.ts [595:627]
static standardHashCode(object, typeCode = null) {
if (typeCode === null) {
typeCode = BinaryUtils.getTypeCode(BinaryUtils.calcObjectType(object));
}
switch (typeCode) {
case BinaryUtils.TYPE_CODE.BYTE:
case BinaryUtils.TYPE_CODE.SHORT:
case BinaryUtils.TYPE_CODE.INTEGER:
return this.intHashCode(object);
case BinaryUtils.TYPE_CODE.LONG:
return this.longHashCode(object);
case BinaryUtils.TYPE_CODE.FLOAT:
return this.floatHashCode(object);
case BinaryUtils.TYPE_CODE.DOUBLE:
return this.doubleHashCode(object);
case BinaryUtils.TYPE_CODE.CHAR:
return this.charHashCode(object);
case BinaryUtils.TYPE_CODE.BOOLEAN:
return this.boolHashCode(object);
case BinaryUtils.TYPE_CODE.STRING:
return this.strHashCode(object);
case BinaryUtils.TYPE_CODE.UUID:
return this.uuidHashCode(object);
case BinaryUtils.TYPE_CODE.TIME:
return this.timeHashCode(object);
case BinaryUtils.TYPE_CODE.DATE:
case BinaryUtils.TYPE_CODE.TIMESTAMP:
return this.datetimeHashCode(object);
default:
return 0;
}
}