|
|
|
@ -98,6 +98,17 @@ MmsValue_newUnsignedFromBerInteger(Asn1PrimitiveValue* berInteger)
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
equalType(const MmsValue* self, const MmsValue* otherValue)
|
|
|
|
|
{
|
|
|
|
|
if (self->type == otherValue->type ||
|
|
|
|
|
(self->type == MMS_STRUCTURE && otherValue->type == MMS_ARRAY) ||
|
|
|
|
|
(self->type == MMS_ARRAY && otherValue->type == MMS_STRUCTURE))
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
MmsValue_equals(const MmsValue* self, const MmsValue* otherValue)
|
|
|
|
|
{
|
|
|
|
@ -190,16 +201,6 @@ MmsValue_equals(const MmsValue* self, const MmsValue* otherValue)
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool
|
|
|
|
|
equalType(const MmsValue* self, const MmsValue* otherValue) {
|
|
|
|
|
if (self->type == otherValue->type ||
|
|
|
|
|
(self->type == MMS_STRUCTURE && otherValue->type == MMS_ARRAY) ||
|
|
|
|
|
(self->type == MMS_ARRAY && otherValue->type == MMS_STRUCTURE))
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
MmsValue_equalTypes(const MmsValue* self, const MmsValue* otherValue)
|
|
|
|
|
{
|
|
|
|
|