tools/media_engagement_preload/make_dafsa.py
def encode_prefix(label):
  """Encodes a node label as a list of bytes without a trailing high byte.

  This method encodes a node if there is exactly one child  and the
  child follows immidiately after so that no jump is needed. This label
  will then be a prefix to the label in the child node.
  """
  assert label
  return [ord(c) for c in reversed(label)]
Encodes a node label as a list of bytes without a trailing high byte.

  This method encodes a node if there is exactly one child  and the
  child follows immidiately after so that no jump is needed. This label
  will then be a prefix to the label in the child node.
  
Encodes a node label as a list of bytes without a trailing high byte.
This method encodes a node if there is exactly one child  and the
child follows immidiately after so that no jump is needed. This label
will then be a prefix to the label in the child node.
Encodes a node label as a list of bytes without a trailing high byte . This method encodes a node if there is exactly one child and the child follows immidiately after so that no jump is needed . This label will then be a prefix to the label in the child node .
def encode_prefix(label):
  assert label
  return [ord(c) for c in reversed(label)]
def encode_prefix ( label ) : assert label return [ ord ( c ) for c in reversed ( label ) ]
Encodes a node label as a list of bytes without a trailing high byte.
Encodes a node label as a list of bytes without a trailing high byte .
"""Encodes a node label as a list of bytes without a trailing high byte.

  This method encodes a node if there is exactly one child  and the
  child follows immidiately after so that no jump is needed. This label
  will then be a prefix to the label in the child node.
  """
label