/* Calculate length of a given File Identifier Descriptor. */
UINT64 GetFidDescriptorLength(IN UDF_FILE_IDENTIFIER_DESCRIPTOR *FileIdentifierDesc)
/* Calculate length of a given File Identifier Descriptor. */
UINT64 GetFidDescriptorLength(IN UDF_FILE_IDENTIFIER_DESCRIPTOR *FileIdentifierDesc)
{
  return (UINT64)(
                  (INTN)((OFFSET_OF (UDF_FILE_IDENTIFIER_DESCRIPTOR, Data[0]) + 3 +
                          FileIdentifierDesc->LengthOfFileIdentifier +
                          FileIdentifierDesc->LengthOfImplementationUse) >> 2) << 2
                  );
}