Mbed Host Tests
|
Simple auxiliary class used to walk through a buffer and search for KV tokens. More...
Public Member Functions | |
__init__ (self) | |
append (self, payload) | |
Append stream buffer with payload and process. | |
search (self) | |
Check if there is a KV value in buffer. | |
pop_kv (self) | |
Public Attributes | |
str | KIVI_REGEX = r"\{\{([\w\d_-]+);([^\}]+)\}\}" |
buff = str() | |
list | kvl = [] |
re_kv = re.compile(self.KIVI_REGEX) | |
list | buff = [] |
Simple auxiliary class used to walk through a buffer and search for KV tokens.
Definition at line 33 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.__init__ | ( | self | ) |
Definition at line 35 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.append | ( | self, | |
payload ) |
Append stream buffer with payload and process.
Returns non-KV strings
Definition at line 41 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.pop_kv | ( | self | ) |
Definition at line 79 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.search | ( | self | ) |
Check if there is a KV value in buffer.
Definition at line 75 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.buff = str() |
Definition at line 37 of file conn_proxy.py.
list mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.buff = [] |
Definition at line 50 of file conn_proxy.py.
str mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.KIVI_REGEX = r"\{\{([\w\d_-]+);([^\}]+)\}\}" |
Definition at line 36 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.kvl = [] |
Definition at line 38 of file conn_proxy.py.
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.re_kv = re.compile(self.KIVI_REGEX) |
Definition at line 39 of file conn_proxy.py.