This is an old revision of the document!
Read bytes into a mutable byte array until a stop character is found.
from cubloc import GetA2 GetA2(channel: int, arrayName: bytearray, byteLength: int, stopChar: int)
Returns the number of bytes copied into arrayName. If stopChar is encountered, it is included in the copied data.
from cubloc import GetA2 # Example usage result = GetA2(0, [1, 2, 3], 1, 10) print(result)