Mbed Host Tests
mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker Class Reference

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 = []
 

Detailed Description

Simple auxiliary class used to walk through a buffer and search for KV tokens.

Definition at line 33 of file conn_proxy.py.

Constructor & Destructor Documentation

◆ __init__()

mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.__init__ ( self)

Definition at line 35 of file conn_proxy.py.

Member Function Documentation

◆ append()

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.

◆ pop_kv()

mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.pop_kv ( self)

Definition at line 79 of file conn_proxy.py.

◆ search()

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.

Member Data Documentation

◆ buff [1/2]

mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.buff = str()

Definition at line 37 of file conn_proxy.py.

◆ buff [2/2]

list mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.buff = []

Definition at line 50 of file conn_proxy.py.

◆ KIVI_REGEX

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.

◆ kvl

mbed_host_tests.host_tests_conn_proxy.conn_proxy.KiViBufferWalker.kvl = []

Definition at line 38 of file conn_proxy.py.

◆ re_kv

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.


The documentation for this class was generated from the following file: