import ctypes


def cbytes(src):
    """Convert bytes-like array to ctypes array of c_uint8."""
    #return (ctypes.c_uint8 * len(bytes(src)))(*list((bytes(src))))
    return (ctypes.c_uint8 * len(bytes(src))).from_buffer_copy(src)