/* Note: For Pseudo OpCodes this function returns NULL. */
CONST AML_BYTE_ENCODING* EFIAPI AmlGetFieldEncoding(IN CONST UINT8 *Buffer)
/* Note: For Pseudo OpCodes this function returns NULL. */
CONST AML_BYTE_ENCODING* EFIAPI AmlGetFieldEncoding(IN CONST UINT8 *Buffer)
{
  UINT8   OpCode;
  UINT32  Index;
  if (Buffer == NULL) {
    ASSERT (0);
    return NULL;
  }
  OpCode = *Buffer;
  for (Index = 0;
       Index < (sizeof (mAmlFieldEncoding) / sizeof (mAmlFieldEncoding[0]));
       Index++)
  {
    if (mAmlFieldEncoding[Index].OpCode == OpCode) {
      if ((mAmlFieldEncoding[Index].Attribute & AML_IS_PSEUDO_OPCODE) ==
          AML_IS_PSEUDO_OPCODE)
      {
        ASSERT (0);
        return NULL;
      }
      return &mAmlFieldEncoding[Index];
    }
  }
  return NULL;
}