def read_string(self):
    s = bytearray()
    while True:
        char = self.read_bytes(1)
        if (char == b'\x00'):
            break
        s.extend(char)
    return s
def read_string(self):
    s = bytearray()
    while True:
        char = self.read_bytes(1)
        if (char == b'\x00'):
            break
        s.extend(char)
    return s