I have a numpy array
a = [void(b'\x0A\x00\x01\x02'),
void(b'\x0B\x02\x03\x04'),
void(b'\x0C\x07\x03\x04')
]
I want something like b'\x0A\x00\x01\x02\x0B\x02\x03\x04\x0C\x07\x03\x04'
Right now I am doing it using loop
result = bytearray()
for b in a:
result += bytearray(b)
Is there any numpy kind of way to do it, so that it becomes fast.
b''.join(bytearray)works with ists and array.