22 lines
676 B
Python
22 lines
676 B
Python
"""
|
|
Auto-generated Python stub file from viperio.py
|
|
Module: viperio
|
|
"""
|
|
|
|
|
|
import t, c
|
|
from stdint import *
|
|
|
|
class Buf:
|
|
data: t.CChar | t.CPtr
|
|
length: t.CSizeT
|
|
capacity: t.CSizeT
|
|
owned: bool
|
|
def __init__(self: Buf, data: t.CChar | t.CPtr, capacity: t.CSizeT, length: t.CSizeT, owned: bool) -> t.CInt: pass
|
|
def clear(self: Buf) -> t.CInt: pass
|
|
def write(self: Buf, src: t.CChar | t.CPtr, count: t.CSizeT) -> t.CSizeT: pass
|
|
def cstr(self: Buf) -> t.CChar | t.CPtr: pass
|
|
def reset(self: Buf) -> t.CInt: pass
|
|
def __enter__(self: Buf) -> 'Buf' | t.CPtr: pass
|
|
def __exit__(self: Buf) -> t.CInt: pass
|
|
def free(self: Buf) -> t.CInt: pass |