class_docstr: A pure Python implementation of OutputStream.
class_docstr_tok: ["A","pure","Python","implementation","of","OutputStream","."]
code: def write_var_int64(self, v: int):
      if v < 0:
          v += 1 << 64
          if v <= 0:
              raise ValueError("Value too large (negative).")
      while True:
          bits = v & 0x7F
          v >>= 7
          if v:
              bits |= 0x80
          self.data.append(chr(bits).encode("latin-1"))
          self.byte_count += 1
          if not v:
              break
  
imports: import struct
label_desc: Use image node_id 11 for calling the OutputStream obj's underlying member method code with example usage: obj.write_var_int64(v) without return types