"""Auto-generated Python stub file"""


import t, c
from stdint import *
class Buf:
    data: t.CChar | t.CPtr
    length: t.CSizeT
    capacity: t.CSizeT
    owned: bool
    def __init__(self, data: t.CChar | t.CPtr, capacity: t.CSizeT, length: t.CSizeT, owned: bool): pass
    def clear(self): pass
    def write(self, src: t.CChar | t.CPtr, count: t.CSizeT) -> t.CSizeT: pass
    def cstr(self) -> t.CChar | t.CPtr: pass
    def reset(self): pass
    def __enter__(self) -> 'Buf' | t.CPtr: pass
    def __exit__(self): pass
    def free(self): pass

