def METHOD_NAME(typename):
  pattern = "sizeof(%s) = " % typename
  for line in platform_info.splitlines():
    if (line.startswith(pattern)):
      break
  else:
    raise RuntimeError('bp.platform_info: "%s" not found.' % pattern)
  return int(line[len(pattern):])