User Tools

Site Tools

한국어

logicpython:cubloc_api:geta2

This is an old revision of the document!


GetA2

Read bytes into a mutable byte array until a stop character is found.

Syntax

from cubloc import GetA2
 
GetA2(channel: int, arrayName: bytearray, byteLength: int, stopChar: int)

Return Value

Returns the number of bytes copied into arrayName. If stopChar is encountered, it is included in the copied data.

Example

from cubloc import GetA2
 
# Example usage
result = GetA2(0, [1, 2, 3], 1, 10)
print(result)
logicpython/cubloc_api/geta2.1775786798.txt.gz · Last modified: by 127.0.0.1