This commit is contained in:
Yusarina
2024-12-16 13:57:12 +00:00
parent c71154b0dc
commit c233e8aace
5 changed files with 10 additions and 309 deletions
+2 -4
View File
@@ -2,15 +2,13 @@ import ctypes
import typing
import struct
from io import BytesIO
from typing import Any
def writeNullable(data: BytesIO, value: = None):
def writeNullable(data: BytesIO, value: Any = None):
data.write(struct.pack("?", value == None))
if(value == None):
return
data.write()
def ReadCSharp_str(data: BytesIO) -> str:
charamount = read7bitEncoded_int(data)