def METHOD_NAME(self):
    buf = b""
    var = len(self.raw)
    for _ in range(4):
        if var >= 128:
            var, b = divmod(var, 128)
            buf += (b | 128).to_bytes(1, "big")
        else:
            buf += var.to_bytes(1, "big")
            break
    self.raw = buf + self.raw