Home
last modified time | relevance | path

Searched refs:encode_token_and_args (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_tokenizer/py/
Dencode_test.py21 from pw_tokenizer.encode import encode_token_and_args
28 encode_token_and_args(0x3412cdab))
29 self.assertEqual(b'\x00\x00\x00\x00', encode_token_and_args(0))
33 encode_token_and_args(0xffffffff, 0))
35 encode_token_and_args(0xffffffff, -1))
37 encode_token_and_args(0xffffffff, 1))
41 encode_token_and_args(0xffffffff, 0.0))
43 encode_token_and_args(0xffffffff, -0.0))
47 encode_token_and_args(0xffffffff, 'hello'))
49 encode_token_and_args(0xffffffff, '!' * 127))
[all …]
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dencode.py58 def encode_token_and_args(token: int, *args: Union[int, float, bytes, function
/external/pigweed/pw_tokenizer/
Ddocs.rst409 tokenized messages with the ``encode_token_and_args`` function.
411 .. autofunction:: pw_tokenizer.encode.encode_token_and_args