コード例 #1
0
bool AssociationTagDescriptor::verify() const {
	if (getDescriptorTag() != TAG)
		return false;
	
	unsigned use = getUse();
	
	if (use == 0x00) {
		if (getSelectorLength() != 8) {
			return false;
		}
	}
	else if (use == 0x01) {
		if (getSelectorLength() != 0) {
			return false;
		}
	}
	
	return Descriptor::verify();
}
コード例 #2
0
ファイル: si.c プロジェクト: rofehr/omxhddevice
DescriptorTag Descriptor::getDescriptorTag() const {
   return getDescriptorTag(data.getData());
}