mojo/public/tools/mojom/mojom/generate/pack.py
def GetPayloadSizeUpToField(field):
  """Returns the payload size (not including struct header) if |field| is the
  last field.
  """
  if not field:
    return 0
  offset = field.offset + field.size
  pad = GetPad(offset, 8)
  return offset + pad
Returns the payload size (not including struct header) if |field| is the
  last field.
  
Returns the payload size (not including struct header) if |field| is the
last field.
Returns the payload size ( not including struct header ) if |field| is the last field .
def GetPayloadSizeUpToField(field):
  if not field:
    return 0
  offset = field.offset + field.size
  pad = GetPad(offset, 8)
  return offset + pad
def GetPayloadSizeUpToField ( field ) : if not field : return 0 offset = field . offset + field . size pad = GetPad ( offset , 8 ) return offset + pad
Returns the payload size (not including struct header) if |field| is the
last field.
Returns the payload size ( not including struct header ) if |field| is the last field .
"""Returns the payload size (not including struct header) if |field| is the
  last field.
  """
field